!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1db485fb-3376-4a85-9047-46d8e0ec1fa5",e._sentryDebugIdIdentifier="sentry-dbid-1db485fb-3376-4a85-9047-46d8e0ec1fa5")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5098],{5044:function(e,t,a){"use strict";a.d(t,{C:function(){return n}});var r=a(87420),i=a(63202);let s=async(e,t)=>(0,i.c)("/api/user/files/open?reference=".concat(e),"GET",void 0,{locale:t}),n=e=>{let{locale:t}=(0,r.Vx)();return{openFile:async()=>{let a=await s(e,t);return a.success&&window.location.assign(a.data.url),!1}}}},60630:function(e,t,a){"use strict";a.d(t,{o:function(){return J}});var r=a(97458),i=a(33831),s=a(17213),n=a(82319),o=a(34254),l=a(61060),c=a(8516),d=a(10893),h=a(52983),u=a(51958),m=a(91394),p=a(33523),f=a(68541),x=a(7616);let v="cache_stored";class g{isBrowser(){return"undefined"!=typeof localStorage}initCacheStore(){if(!this.initialized&&this.isBrowser())try{localStorage.getItem(v)||localStorage.setItem(v,JSON.stringify({entries:{}})),this.initialized=!0}catch(e){console.error("Error initializing cache store:",e)}}getCacheStore(){if(this.initCacheStore(),!this.isBrowser())return{entries:{}};try{let e=localStorage.getItem(v);if(!e)return{entries:{}};return JSON.parse(e)}catch(e){return console.error("Error getting cache store:",e),{entries:{}}}}saveCacheStore(e){if(!this.isBrowser())return!1;try{return localStorage.setItem(v,JSON.stringify(e)),!0}catch(e){return console.error("Error saving cache store:",e),!1}}getFullKey(e){return"".concat(this.prefix,"_").concat(e)}cleanupExpiredEntries(){try{let e=this.getCacheStore(),t=Date.now(),a=!1;for(let r in e.entries){let i=e.entries[r];t>i.validUntil&&(delete e.entries[r],a=!0)}a&&this.saveCacheStore(e)}catch(e){console.error("Error cleaning up expired entries:",e)}}set(e,t,a){if(!this.isBrowser())return!1;try{var r;let i=this.getFullKey(e),s=Date.now()+(null!==(r=null!=a?a:this.options.defaultValidityTime)&&void 0!==r?r:0),n=this.getCacheStore();return n.entries[i]={data:t,validUntil:s},this.options.autoCleanup&&this.cleanupExpiredEntries(),this.saveCacheStore(n)}catch(t){return console.error("Error storing in cache for key ".concat(e,":"),t),!1}}get(e){if(!this.isBrowser())return null;try{let t=this.getFullKey(e),a=this.getCacheStore();if(!a.entries[t])return null;let r=a.entries[t];if(Date.now()>r.validUntil)return this.remove(e),null;return r.data}catch(t){return console.error("Error getting from cache for key ".concat(e,":"),t),null}}remove(e){if(this.isBrowser())try{let t=this.getFullKey(e),a=this.getCacheStore();a.entries[t]&&(delete a.entries[t],this.saveCacheStore(a))}catch(t){console.error("Error removing from cache for key ".concat(e,":"),t)}}has(e){return!!this.isBrowser()&&null!==this.get(e)}getTimeLeft(e){if(!this.isBrowser())return 0;try{let t=this.getFullKey(e),a=this.getCacheStore();if(!a.entries[t])return 0;let r=a.entries[t],i=Date.now();return Math.max(0,r.validUntil-i)}catch(t){return console.error("Error getting remaining validity time for key ".concat(e,":"),t),0}}clear(){if(this.isBrowser())try{let e=this.getCacheStore(),t=!1;for(let a in e.entries)a.startsWith("".concat(this.prefix,"_"))&&(delete e.entries[a],t=!0);t&&this.saveCacheStore(e)}catch(e){console.error("Error clearing cache:",e)}}cleanupAll(){if(!this.isBrowser())return 0;try{let e=this.getCacheStore(),t=Date.now(),a=0;for(let r in e.entries){let i=e.entries[r];t>i.validUntil&&(delete e.entries[r],a++)}return a>0&&this.saveCacheStore(e),a}catch(e){return console.error("Error cleaning up all expired entries:",e),0}}constructor(e,t){this.initialized=!1,this.prefix=e,this.options={defaultValidityTime:36e5,autoCleanup:!0,...t}}}var j=a(53655),w=a(83795);let b=new g("recentFiles",{defaultValidityTime:5e3}),k="files",N=e=>{let{isLogged:t=!0}=e,[a,r]=(0,h.useState)(null),[i,s]=(0,h.useState)(!1),{locale:n}=(0,f.V)(),[o,l]=(0,x.KO)(w.M),[c,d]=(0,h.useState)(!0),[u,m]=(0,h.useState)(!1),p=(0,h.useCallback)(async()=>{if(!i&&!a){s(!0);try{let e=b.get(k);if(e){l([...e]),m(e.length>=5),s(!1);return}let t=await (0,j.v)({locale:n});t.success?(l([...t.data]),b.set(k,[...t.data]),m(t.data.length>=5),r(null)):r(t.data||"Error loading recent files")}catch(e){r("Error loading recent files")}finally{s(!1)}}},[i,a,n,l]);return(0,h.useEffect)(()=>{t&&(c||o.length<5&&u)&&(p(),d(!1))},[p,c,o,u,l,t]),{loading:i,files:o,isFirstLoad:c,getNewFiles:p}};var y=a(60524),C=a(57291),O=a(98821),_=a.n(O),S=a(5044);let M=e=>{var t,a;let{file:i}=e,{openFile:s}=(0,S.C)(i.reference);return(0,r.jsxs)(y.ItemLink,{as:"button",onClick:()=>s(),className:"items-center",children:[(0,r.jsx)(_(),{src:null!==(a=null===(t=i.thumbnail)||void 0===t?void 0:t.url)&&void 0!==a?a:"",alt:"",width:16,height:16}),(0,r.jsx)("span",{className:(0,C.cx)(c.k2,"w-72"),children:i.name})]})},A=e=>{let{folder:t,isChildren:a=!1}=e;return(0,r.jsxs)(y.ItemLink,{href:"/user/projects?reference=".concat(t.reference),className:"pl-[34px]",children:[a&&(0,r.jsx)("span",{className:"w-5"}),(0,r.jsx)(l.D,{name:"tools.folder-filled",size:"sm",className:"text-piki-blue-200"}),t.name]})};var L=a(27793),P=a(58058),z=a.n(P);let V=()=>{let{loginUrl:e,setLoginCookies:t}=(0,L.J)(),a=(0,n.m)(),{t:i}=(0,d.$G)("topNav");return(0,r.jsxs)("div",{className:(0,C.cx)("flex flex-col gap-2 rounded border border-dashed border-surface-1 p-4",a&&"mx-2"),children:[(0,r.jsx)("p",{children:i("projectsSubmenu.anonymous.title")}),(0,r.jsx)("p",{className:"font-semibold",children:(0,r.jsx)(d.cC,{i18nKey:"topNav:projectsSubmenu.anonymous.description",components:{1:(0,r.jsx)(z(),{href:e,onClick:a=>{a.preventDefault(),t("/user/projects"),location.assign(e)},className:"text-piki-blue-500"})}})})]})},Z=()=>{let{t:e}=(0,d.$G)("topNav");return(0,r.jsxs)(y.ItemLink,{href:"/user/projects",title:e("projectsSubmenu.hederLink"),children:[(0,r.jsx)(l.D,{name:"tools.folder",size:"sm"}),e("projectsSubmenu.hederLink")]})},I=()=>{let{t:e}=(0,d.$G)("topNav");return(0,r.jsxs)(y.ItemLink,{href:"/user/collections",title:e("userMenu.myCollections"),children:[(0,r.jsx)(l.D,{name:"communication.heart",size:"sm"}),e("userMenu.myCollections")]})},T=()=>{let{t:e}=(0,d.$G)("topNav");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z,{}),(0,r.jsx)("div",{className:"max-w-xs py-2 pl-9",children:(0,r.jsxs)("div",{className:"flex flex-col gap-2 rounded border border-dashed border-surface-1 p-4",children:[(0,r.jsx)("p",{className:"text-sm",children:e("projectsSubmenu.empty.text")}),(0,r.jsx)(z(),{href:"/user/projects",className:"font-semibold text-piki-blue-500",children:e("projectsSubmenu.empty.href")})]})}),(0,r.jsx)(I,{})]})};var G=a(51780),E=a(4851);let H=e=>({name:e.name,reference:e.reference,totalFolders:e.totalFolders}),D=e=>{let{treeItem:t}=e,[a,i]=(0,h.useState)(!1),[s,n]=(0,h.useState)([]),o=(0,G.useRouter)(),l=(0,E.j)(),c=()=>{i(!0),l({isTrash:!1,reference:t.reference,page:0}).then(e=>{e.success&&e.data.folders&&(n(e.data.folders.map(H)),i(!1))}).catch(()=>{i(!1)})};return(0,r.jsx)(y.TreeItems,{label:t.name,onClick:()=>{o.push("/user/projects?reference=".concat(t.reference))},onClickTrigger:()=>{!(s.length>0)&&(a||c())},isLoading:a,children:!a&&s.map(e=>"number"==typeof e.totalFolders&&e.totalFolders>0?(0,r.jsx)(D,{treeItem:e},e.reference):(0,r.jsx)(A,{folder:e,isChildren:!0},e.reference))},t.reference)},B=(e,t)=>{let a=(0,E.j)(),[r,i]=(0,h.useState)(t.current.childrensFolder);return(0,h.useEffect)(()=>{if(e){if(0!==t.current.timestamp&&t.current.timestamp+2e4>Date.now()){i(t.current.childrensFolder);return}a({isTrash:!1,reference:null,page:0,perPage:20}).then(e=>{if(!e.success||!e.data.folders)return;let a=e.data.folders.map(H);i(a),t.current.childrensFolder=a,t.current.timestamp=Date.now()})}},[a,e,t]),r},$=()=>(0,r.jsx)("div",{className:"mt-2 flex flex-col gap-4",children:Array.from({length:5},(e,t)=>(0,r.jsx)(p.O.Rect,{className:"h-6"},"skeleton".concat(t)))}),R=e=>{let{cachedFoldersRef:t}=e,{t:a}=(0,d.$G)("topNav"),i=(0,m.d)(),{loading:s,files:n}=N({isLogged:i}),o=B(i,t);return i?s?(0,r.jsx)($,{}):0===n.length?(0,r.jsx)(T,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z,{}),o.map(e=>{var t;return(null!==(t=e.totalFolders)&&void 0!==t?t:0)>0?(0,r.jsx)(D,{treeItem:e},e.reference):(0,r.jsx)(A,{folder:e},e.reference)}),(0,r.jsx)(I,{}),(0,r.jsx)("p",{className:c.hC,children:a("projectsSubmenu.title")}),n.map(e=>(0,r.jsx)(M,{file:e},e.reference))]}):(0,r.jsx)(V,{})},F=e=>{let{cachedFoldersRef:t}=e,[a,i]=(0,h.useState)(!1),s=(0,n.m)(),o=(0,u.q)();return((0,h.useEffect)(()=>{(s||o)&&i(!0)},[o,s]),a)?(0,r.jsx)(R,{cachedFoldersRef:t}):(0,r.jsx)($,{})},U=["/user/projects"],J=()=>{let{t:e}=(0,d.$G)("topNav"),t=(0,o.e)(U),a=(0,s.K)(t),u=(0,n.m)(),m=(0,h.useRef)({childrensFolder:[],timestamp:0}),p=a&&!u?c.uU:void 0;return(0,r.jsx)(i.m,{className:p,label:e("sidebarTitles.projects"),icon:(0,r.jsx)(l.D,{name:"collection.curated-collections",size:"sm"}),children:(0,r.jsx)(F,{cachedFoldersRef:m})})}},86049:function(e,t,a){"use strict";a.d(t,{IN:function(){return n},Mp:function(){return r},Oc:function(){return i},Qo:function(){return s},_H:function(){return o},fg:function(){return l}});let r="https://www.freepik.com/designer/edit",i="/user/projects",s=1,n=15,o={foldersPerPage:7,filesPerPage:8},l={currentPage:1,lastPage:1,perPage:0,total:0}},53655:function(e,t,a){"use strict";a.d(t,{v:function(){return s}});var r=a(63202),i=a(13022);let s=async e=>{let{locale:t}=e;return(0,r.c)("/api/user/files/recent".concat((0,i.T)({locale:t})),"GET",void 0,{cache:"no-store"})}},83795:function(e,t,a){"use strict";a.d(t,{M:function(){return r}});let r=(0,a(73139).rw)([])},4851:function(e,t,a){"use strict";a.d(t,{j:function(){return u}});var r=a(87420),i=a(52983),s=a(63202),n=a(13022);let o=async e=>{let{page:t,perPage:a,locale:r,reference:i}=e;return(0,s.c)("/api/user/folders/".concat(i,"/folders").concat((0,n.T)({page:t,per_page:a,locale:r})),"GET",void 0,{cache:"no-store"})},l=async e=>{let{page:t,perPage:a,locale:r}=e;return(0,s.c)("/api/user/folders".concat((0,n.T)({page:t,per_page:a,locale:r})),"GET",void 0,{cache:"no-store"})},c=async e=>{let{reference:t,page:a,perPage:r,locale:i}=e;return(0,s.c)("/api/user/folders/trash".concat((0,n.T)({page:a,per_page:r,reference:t,locale:i})),"GET",void 0,{cache:"no-store"})},d=async e=>{let{page:t,perPage:a,locale:r}=e;return(0,s.c)("/api/user/folders/trash".concat((0,n.T)({page:t,per_page:a,locale:r})),"GET",void 0,{cache:"no-store"})};var h=a(86049);let u=()=>{let e=(0,r.Vx)().locale;return(0,i.useCallback)(async t=>{let{isTrash:a,reference:r,page:i,perPage:s}=t,n=null!=s?s:h._H.foldersPerPage;return a&&r?await c({page:i,perPage:n,locale:e,reference:r}):a?await d({page:i,perPage:n,locale:e}):r?await o({page:i,perPage:n,locale:e,reference:r}):await l({page:i,perPage:n,locale:e})},[e])}},63202:function(e,t,a){"use strict";a.d(t,{c:function(){return r}});let r=async(e,t,a,r)=>{let i=r?new Headers:void 0;return(null==r?void 0:r.locale)&&i&&i.set("accept-language",r.locale),(null==r?void 0:r.cache)&&i&&i.set("cache",r.cache),fetch(e,{method:t,...a&&{body:JSON.stringify(a)},...r&&{...r,headers:i}}).then(async e=>e.ok?{success:!0,data:204===e.status?null:await e.json()}:400===e.status?{success:!1,data:e.statusText}:401===e.status||405===e.status?{success:!1,data:"AUTHENTICATION_ERROR"}:403===e.status?{success:!1,data:"FORBIDDEN"}:500===e.status?{success:!1,data:"INTERNAL_SERVER_ERROR"}:404===e.status?{success:!1,data:"NOT_FOUND"}:429===e.status?{success:!1,data:"TOO_MANY_REQUESTS"}:{success:!1,data:await e.json()})}},13022:function(e,t,a){"use strict";a.d(t,{T:function(){return r}});let r=e=>{let t=Object.keys(e),a="?";return 0===t.length?"":(t.forEach((t,r)=>{let i=e[t];!i||t.includes(" ")||(a="".concat(a).concat(0===r?"":"&").concat(t,"=").concat(i.toString()))}),a)}},30088:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16","aria-hidden":!0,...e,children:[(0,r.jsx)("path",{d:"m14.36 5.19 1.19-.53a.733.733 0 0 0 0-1.34l-1.19-.53a.7.7 0 0 1-.37-.37l-.53-1.19a.733.733 0 0 0-1.34 0l-.53 1.19c-.07.17-.21.3-.37.37l-1.19.53a.733.733 0 0 0 0 1.34l1.19.53c.17.07.3.21.37.37l.53 1.19c.26.58 1.08.58 1.34 0l.53-1.19c.07-.17.21-.3.37-.37"}),(0,r.jsx)("path",{d:"M14.37 11.27c0 .27-.22.49-.49.49H7.99c-.15 0-.3.04-.43.12l-2.69 1.67v-.98c0-.45-.36-.81-.81-.81H2.11a.49.49 0 0 1-.49-.49V2.91c0-.27.22-.49.49-.49h5.48c.45 0 .81-.36.81-.81S8.04.8 7.59.8H2.11C.95.8 0 1.75 0 2.91v8.36c0 1.17.95 2.11 2.11 2.11h1.14v1.63a.81.81 0 0 0 .82.81c.15 0 .3-.04.43-.12l3.74-2.32h5.65c1.17 0 2.11-.95 2.11-2.11V9.12c0-.45-.36-.81-.81-.81s-.81.36-.81.81v2.15z"})]})},92617:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":!0,...e,children:[(0,r.jsx)("path",{d:"M7.518.86a.78.78 0 0 0-.852.169L3.77 3.925H2.031C.911 3.925 0 4.836 0 5.956v4.125c0 1.12.911 2.031 2.031 2.031h1.74l2.895 2.896A.781.781 0 0 0 8 14.457V1.581c0-.316-.19-.6-.482-.722Zm-1.08 11.71-1.792-1.791a.78.78 0 0 0-.552-.23H2.03a.47.47 0 0 1-.469-.468V5.956a.47.47 0 0 1 .47-.469h2.062a.78.78 0 0 0 .552-.228l1.792-1.792v9.103Zm3.593 1.417a.781.781 0 0 1 0-1.562 4.41 4.41 0 0 0 4.406-4.406 4.41 4.41 0 0 0-4.406-4.407.781.781 0 0 1 0-1.562A5.976 5.976 0 0 1 16 8.019a5.975 5.975 0 0 1-5.969 5.968"}),(0,r.jsx)("path",{d:"M10.031 10.862a.781.781 0 0 1 0-1.562 1.282 1.282 0 0 0 .001-2.563.781.781 0 0 1 0-1.562 2.847 2.847 0 0 1 2.843 2.844 2.847 2.847 0 0 1-2.844 2.843"})]})},60928:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:16,height:16,"aria-hidden":!0,...e,children:[(0,r.jsx)("path",{d:"M247 420H70c-8.3 0-15-6.7-15-15V164h392v92c0 13.8 11.2 25 25 25s25-11.2 25-25V79c0-35.8-29.2-65-65-65H70C34.2 14 5 43.2 5 79v326c0 35.8 29.2 65 65 65h177c13.8 0 25-11.2 25-25s-11.2-25-25-25M70 64h362c8.3 0 15 6.7 15 15v35H55V79c0-8.3 6.7-15 15-15"}),(0,r.jsx)("path",{d:"M488 372.9 336.4 221.3c-4.7-4.7-11-7.3-17.7-7.3H248c-13.8 0-25 11.2-25 25v70.7c0 6.6 2.6 13 7.3 17.7L381.9 479c12.3 12.3 28.6 19 46 19s33.7-6.8 46-19l14.1-14.1c12.3-12.3 19-28.6 19-46s-6.8-33.7-19-46m-35.4 56.6-14.1 14.1c-5.8 5.9-15.4 5.8-21.2 0L273 299.4V264h35.4l144.3 144.3c2.8 2.8 4.4 6.6 4.4 10.6-.1 4-1.7 7.7-4.5 10.6"})]})},48412:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M11.452 0h1.698c.47 0 .85.38.85.85v1.699c0 .469-.38.85-.85.85h-1.699a.85.85 0 0 1-.849-.85v-1.7c0-.469.38-.849.85-.849M13.15 5.301h-1.699a.85.85 0 0 0-.849.85V7.85c0 .469.38.849.85.849h1.698c.47 0 .85-.38.85-.85V6.15a.85.85 0 0 0-.85-.849M.85 10.602h1.699c.469 0 .85.38.85.85v1.698c0 .47-.381.85-.85.85h-1.7A.85.85 0 0 1 0 13.15v-1.699c0-.469.38-.85.85-.85M7.85 10.602h-1.7a.85.85 0 0 0-.85.85v1.698c.001.47.381.85.85.85h1.7c.469 0 .849-.38.849-.85v-1.699a.85.85 0 0 0-.85-.85M13.15 10.602h-1.699a.85.85 0 0 0-.849.85v1.698c0 .47.38.85.85.85h1.698c.47 0 .85-.38.85-.85v-1.699a.85.85 0 0 0-.85-.85M6.15 5.301h1.7c.469 0 .849.38.849.85V7.85c0 .469-.38.849-.85.849H6.15a.85.85 0 0 1-.85-.85V6.15c.001-.469.381-.849.85-.849M2.549 5.301h-1.7a.85.85 0 0 0-.849.85V7.85c0 .469.38.849.85.849h1.699c.469 0 .85-.38.85-.85V6.15a.85.85 0 0 0-.85-.849M7.85 0h-1.7a.85.85 0 0 0-.85.85v1.699c.001.469.381.85.85.85h1.7c.469 0 .849-.381.849-.85v-1.7A.85.85 0 0 0 7.849 0M.85 0h1.699c.469 0 .85.38.85.85v1.699c0 .469-.381.85-.85.85h-1.7A.85.85 0 0 1 0 2.548v-1.7C0 .38.38 0 .85 0"})})},29667:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 14","aria-hidden":!0,...e,children:[(0,r.jsxs)("g",{fill:"currentColor",clipPath:"url(#lip-sync_svg__a)",children:[(0,r.jsx)("path",{d:"M4.16 6.58a.47.47 0 0 0-.277.17c-.053 0-.16 0-.192-.01-.255-.235-.382-.757-.265-1.097.01-.054.03-.086.03-.096.182.01.5 0 .65-.34a.647.647 0 0 0-.287-.853.96.96 0 0 0-.84 0c-.34.15-.607.47-.745.895-.266.82 0 1.873.617 2.448.277.256.596.394.926.394h.149c.35-.042.66-.255.86-.575a.6.6 0 0 0-.148-.787c-.095-.064-.266-.17-.49-.128zm10.915.872a.713.713 0 0 0-1.022 0 .736.736 0 0 0 0 1.033c.32.32.5.756.5 1.214s-.18.894-.5 1.213a.727.727 0 0 0 0 1.033c.138.14.32.213.51.213a.7.7 0 0 0 .51-.213A3.16 3.16 0 0 0 16 9.7c0-.852-.33-1.64-.925-2.248m-2.947 1.15a.716.716 0 0 0 0 1.022v.128a.726.726 0 0 0 0 1.033.717.717 0 0 0 1.02 0 1.556 1.556 0 0 0 0-2.183.745.745 0 0 0-1.031 0h.01"}),(0,r.jsx)("path",{d:"M10.68 5.675v-.33A5.346 5.346 0 0 0 5.34 0 5.346 5.346 0 0 0 0 5.344v.65a5.34 5.34 0 0 0 1.904 4.056v3.226c0 .405.33.724.724.724H7.51c.404 0 .723-.33.723-.724v-.958h.904c.851 0 1.543-.692 1.543-1.544v-.479c0-.298-.192-.415-.298-.479l-.096-.053s-.053-.053-.053-.096c0-.075.085-.16.106-.181a.73.73 0 0 0 .34-.618V8.22c.31-.138.682-.362.799-.49.191-.223.127-.543 0-.745l-.787-1.31zM9.235 7.793v2.992s-.043.085-.085.085H7.52a.724.724 0 0 0-.723.724v.958H3.362V9.688a.74.74 0 0 0-.309-.596 3.82 3.82 0 0 1-1.596-3.109v-.65a3.897 3.897 0 0 1 3.894-3.896 3.897 3.897 0 0 1 3.894 3.897v2.449z"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"lip-sync_svg__a",children:(0,r.jsx)("path",{d:"M0 0h16v14H0z"})})})]})},82636:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 14 4","aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M0 2.299c0-.937.762-1.7 1.699-1.7s1.7.763 1.7 1.7-.763 1.699-1.7 1.699A1.7 1.7 0 0 1 0 2.298M7 .6c-.937 0-1.699.762-1.699 1.699 0 .936.762 1.699 1.699 1.699s1.699-.763 1.699-1.7S7.937.6 7 .6M12.301.6a1.7 1.7 0 0 0-1.699 1.699 1.7 1.7 0 0 0 1.699 1.699c.937 0 1.699-.763 1.699-1.7S13.238.6 12.301.6"})})},44866:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 14 14","aria-hidden":!0,...e,children:[(0,r.jsxs)("g",{fill:"currentColor",clipPath:"url(#microphone_svg__a)",children:[(0,r.jsx)("path",{d:"M7 11.667A4.67 4.67 0 0 0 11.668 7V4.667a4.666 4.666 0 1 0-9.333 0V7a4.67 4.67 0 0 0 4.667 4.667m0-10.5a3.5 3.5 0 0 1 3.448 2.916H8.751a.583.583 0 0 0 0 1.167h1.75v1.167H8.75a.583.583 0 0 0 0 1.166h1.697a3.497 3.497 0 0 1-6.895 0h1.698a.583.583 0 1 0 0-1.166H3.5V5.25h1.75a.583.583 0 0 0 0-1.167H3.553a3.5 3.5 0 0 1 3.448-2.916"}),(0,r.jsx)("path",{d:"M13.417 7a.583.583 0 0 0-.584.583 5.255 5.255 0 0 1-5.25 5.25H6.417a5.256 5.256 0 0 1-5.25-5.25.583.583 0 0 0-1.167 0A6.424 6.424 0 0 0 6.417 14h1.166A6.424 6.424 0 0 0 14 7.583.583.583 0 0 0 13.417 7"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"microphone_svg__a",children:(0,r.jsx)("path",{d:"M0 0h14v14H0z"})})})]})},2166:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24","aria-hidden":!0,...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M20.807 1.844A1.172 1.172 0 0 1 22.172 3v13.054a4.172 4.172 0 1 1-2.344-3.805V4.383l-9.656 1.61v12.061a4.172 4.172 0 1 1-2.344-3.805V5c0-.573.414-1.062.98-1.156zM6 16.172a1.828 1.828 0 1 0 0 3.656 1.828 1.828 0 0 0 0-3.656m12-2a1.828 1.828 0 1 0 0 3.656 1.828 1.828 0 0 0 0-3.656",clipRule:"evenodd"})})},77130:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M14.272 7.182a.82.82 0 0 0-.818.818c0 3.259-2.65 5.91-5.91 5.91a5.92 5.92 0 0 1-4.273-1.83h1.954a.818.818 0 0 0 0-1.635h-3.92a.82.82 0 0 0-.818.818v3.92a.818.818 0 0 0 1.636 0v-1.938a7.54 7.54 0 0 0 5.422 2.3 7.5 7.5 0 0 0 5.333-2.208A7.5 7.5 0 0 0 15.09 8a.82.82 0 0 0-.818-.818M1.635 8a5.916 5.916 0 0 1 5.91-5.91c1.631 0 3.17.677 4.274 1.83H9.865a.818.818 0 0 0 0 1.635h3.92a.82.82 0 0 0 .817-.818V.817a.818.818 0 0 0-1.635 0v1.938a7.54 7.54 0 0 0-5.422-2.3A7.5 7.5 0 0 0 2.21 2.663 7.5 7.5 0 0 0 0 8a.818.818 0 0 0 1.635 0"})})},90231:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"m10.538 11.276-.3 1.072a1.73 1.73 0 0 1-2.128 1.195l-6.85-1.92a1.72 1.72 0 0 1-1.038-.816 1.72 1.72 0 0 1-.157-1.311l1.49-5.32c.094-.332.28-.614.522-.827v4.036l-.693 2.472a.358.358 0 0 0 .246.45l6.85 1.92a.36.36 0 0 0 .441-.249l.197-.702zM14 8.39V3.14c0-.838-.68-1.518-1.519-1.518H7.824A1.52 1.52 0 0 0 6.383.583H4.934c-.838 0-1.518.68-1.518 1.518v6.29c0 .838.68 1.518 1.518 1.518h7.547c.839 0 1.519-.68 1.519-1.519M6.383 1.95a.15.15 0 0 1 .15.151v.205c0 .378.307.684.685.684h5.263c.084 0 .151.067.151.15v5.25a.15.15 0 0 1-.15.151H4.934a.15.15 0 0 1-.151-.15V2.1a.15.15 0 0 1 .15-.15z"})})},27488:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M19.802 3.414 18.7.914c-.538-1.219-2.269-1.219-2.806 0l-1.102 2.5a1.53 1.53 0 0 1-.784.784l-2.5 1.102c-1.22.538-1.22 2.269 0 2.806l2.5 1.102c.35.154.63.434.784.784l1.102 2.5c.537 1.22 2.268 1.22 2.806 0l1.102-2.5c.154-.35.434-.63.784-.784l2.5-1.102c1.219-.537 1.219-2.268 0-2.806l-2.5-1.102a1.53 1.53 0 0 1-.784-.784M5.442 9.52l.74 1.678c.103.235.291.423.526.527l1.677.74c.82.36.82 1.522 0 1.883l-1.677.74a1.03 1.03 0 0 0-.527.526l-.74 1.678c-.36.819-1.522.819-1.883 0l-.74-1.678a1.03 1.03 0 0 0-.526-.526l-1.678-.74c-.819-.36-.819-1.523 0-1.884l1.678-.74c.235-.103.423-.291.526-.526l.74-1.678c.36-.818 1.523-.818 1.884 0m8.925 7.574.608 1.382c.086.193.24.348.434.433l1.382.61a.848.848 0 0 1 0 1.55l-1.382.61a.85.85 0 0 0-.434.433l-.608 1.381a.848.848 0 0 1-1.551 0l-.61-1.381a.85.85 0 0 0-.433-.434l-1.381-.609a.848.848 0 0 1 0-1.55l1.381-.61a.85.85 0 0 0 .434-.433l.609-1.382a.848.848 0 0 1 1.55 0z"})})},87532:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 14",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M3.333.333C3.702.333 4 .632 4 1v12a.667.667 0 1 1-1.333 0V1c0-.368.298-.667.666-.667m8 1.334c.368 0 .667.298.667.666v9.334a.667.667 0 0 1-1.333 0V2.333c0-.368.298-.666.666-.666M6 2.333c.368 0 .667.299.667.667v8a.667.667 0 1 1-1.334 0V3c0-.368.299-.667.667-.667m2.667 1.334c.368 0 .666.298.666.666v5.334a.667.667 0 1 1-1.333 0V4.333c0-.368.298-.666.667-.666M.667 5c.368 0 .666.299.666.667v2.666a.667.667 0 1 1-1.333 0V5.667C0 5.299.298 5 .667 5"})})},31737:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M18 8.5v7a1.5 1.5 0 0 1-3 0v-7a1.5 1.5 0 0 1 3 0M11.5 0A1.5 1.5 0 0 0 10 1.5v21a1.5 1.5 0 0 0 3 0v-21A1.5 1.5 0 0 0 11.5 0m10 4A1.5 1.5 0 0 0 20 5.5v13a1.5 1.5 0 0 0 3 0v-13A1.5 1.5 0 0 0 21.5 4m-15 1A1.5 1.5 0 0 0 5 6.5v11a1.5 1.5 0 0 0 3 0v-11A1.5 1.5 0 0 0 6.5 5m-5 4A1.5 1.5 0 0 0 0 10.5v3a1.5 1.5 0 0 0 3 0v-3A1.5 1.5 0 0 0 1.5 9"})})},66337:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M13.188.781H2.813C1.693.781.78 1.692.78 2.812v10.376c0 1.12.911 2.03 2.031 2.03h10.376c1.12 0 2.03-.91 2.03-2.03V2.813c0-1.12-.91-2.032-2.03-2.032m.468 12.407a.47.47 0 0 1-.469.468H2.813a.47.47 0 0 1-.47-.469V2.813a.47.47 0 0 1 .47-.47h10.375a.47.47 0 0 1 .468.47zm-1.22-8.842v2.592a.781.781 0 1 1-1.563 0v-1.81h-1.78a.781.781 0 1 1 0-1.563h2.561c.432 0 .781.35.781.78m-4.748 7.308c0 .432-.35.781-.782.781h-2.56a.78.78 0 0 1-.781-.78V9.093a.781.781 0 1 1 1.562 0v1.779h1.78c.43 0 .78.35.78.781"})})},49505:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 14 14","aria-hidden":!0,...e,children:[(0,r.jsx)("g",{clipPath:"url(#video-editor_svg__a)",children:(0,r.jsx)("path",{d:"M13.44 5.833H5.467l7.553-2.078a.55.55 0 0 0 .342-.272.6.6 0 0 0 .056-.445L12.847.85a1.16 1.16 0 0 0-.52-.696 1.08 1.08 0 0 0-.84-.115L.827 2.97a1.1 1.1 0 0 0-.391.199A1.16 1.16 0 0 0 .04 4.385l.52 2v6.447c0 .31.119.607.329.825.21.22.495.342.792.342h11.2c.296 0 .58-.123.791-.342a1.2 1.2 0 0 0 .328-.825V6.416a.6.6 0 0 0-.164-.412.55.55 0 0 0-.396-.171m-1.669-4.667.42 1.61-1.583.437L8.64 2.029zM7.103 2.449l1.969 1.185-2.586.71-1.968-1.182zM1.546 5.703l-.42-1.61 1.855-.51 1.968 1.185zm11.334 7.13H1.68V7h11.2z"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"video-editor_svg__a",children:(0,r.jsx)("path",{d:"M0 0h14v14H0z"})})})]})},60319:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M12.223.684H1.777A1.78 1.78 0 0 0 0 2.46v6.617c0 .98.797 1.777 1.777 1.777h10.446A1.78 1.78 0 0 0 14 9.079V2.461A1.78 1.78 0 0 0 12.223.684m.41 8.394a.41.41 0 0 1-.41.41H1.777a.41.41 0 0 1-.41-.41V2.461a.41.41 0 0 1 .41-.41h10.446a.41.41 0 0 1 .41.41zM14 12.633a.684.684 0 0 1-.684.683H.684a.684.684 0 1 1 0-1.367h12.632c.378 0 .684.306.684.684M8.914 5.797c0 .24-.125.462-.33.586L6.176 7.832a.684.684 0 0 1-1.036-.586V4.348a.684.684 0 0 1 1.036-.586l2.406 1.45c.206.123.331.345.331.585"})})},4833:function(e,t,a){"use strict";var r=a(97458);t.Z=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:[(0,r.jsx)("path",{d:"M272 588c-13.807 0-25-11.193-25-25s11.193-25 25-25c77.748 0 141-63.252 141-141s-63.252-141-141-141c-13.807 0-25-11.193-25-25s11.193-25 25-25c105.318 0 191 85.682 191 191s-85.682 191-191 191"}),(0,r.jsx)("path",{d:"M272 488c-13.807 0-25-11.193-25-25s11.193-25 25-25c22.607 0 41-18.393 41-41s-18.393-41-41-41c-13.807 0-25-11.193-25-25s11.193-25 25-25c50.178 0 91 40.822 91 91s-40.822 91-91 91m-80.433-320.097a25 25 0 0 0-27.245 5.419L71.644 266H16c-35.841 0-65 29.159-65 65v132c0 35.841 29.159 65 65 65h55.645l92.678 92.678A25 25 0 0 0 207.001 603V191a25 25 0 0 0-15.434-23.097M157 542.645l-57.322-57.322A25 25 0 0 0 82 478.001H16c-8.271 0-15-6.729-15-15v-132c0-8.271 6.729-15 15-15h66c6.63 0 12.989-2.634 17.678-7.322L157 251.356z"})]})},37511:function(e,t,a){"use strict";a.d(t,{l:function(){return d}});var r=a(24985),i=a(60928),s=a(77875),n=a(21623),o=a(27488),l=a(34705),c=a(4833);let d=e=>[{icon:r.Z,name:"aiAssistant",title:"topNav:creating.aiAssistant.title",href:"/pikaso/assistant",badge:"topNav:badges.new"},{icon:o.Z,name:"pikaso",title:"topNav:creating.aiGeneratedImage.title",href:"https://www.freepik.com/pikaso/ai-image-generator"},{icon:l.Z,name:"video",title:"topNav:creating.aiGeneratedVideo.title",href:"es"===e?"https://www.freepik.es/pikaso/ai-video-generator":"https://www.freepik.com/pikaso/ai-video-generator"},{icon:c.Z,name:"sound",title:"topNav:creating.aiGeneratedVoice.title",href:"https://www.freepik.com/audio/ai-voice-generator"},{icon:s.Z,name:"icon",title:"topNav:creating.aiGeneratedIcon.title",href:"/ai/icon-generator/tool"},{icon:i.Z,name:"edit",href:"https://www.freepik.com/designer/edit",title:"topNav:creating.design.title"},{icon:n.Z,name:"mockups",title:"topNav:creating.mockups.title",href:"https://www.freepik.com/mockup-editor/"}]},38579:function(e,t,a){"use strict";a.d(t,{VY:function(){return n},YE:function(){return s},fC:function(){return i}});var r=a(97458);let i=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"$bg-surface-0 $text-surface-foreground-0 lg:flex",children:t})},s=e=>{let{children:t}=e;return(0,r.jsx)("nav",{"aria-label":"Sidebar",className:"w-full lg:w-20",children:(0,r.jsx)("div",{className:"fixed left-0 top-0 z-[3] w-full lg:w-auto lg:border-r lg:border-surface-1",children:t})})},n=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"relative lg:w-[calc(100%-5rem)]",children:t})}},10914:function(e,t,a){"use strict";a.d(t,{C:function(){return o}});var r=a(97458),i=a(32856),s=a(57291),n=a(10893);let o=e=>{let{className:t,label:a="badges.new"}=e,{t:o}=(0,n.$G)("topNav");return(0,r.jsx)("span",{className:(0,s.cx)((0,i.G)({size:"sm",variant:"piki-blue"}),"uppercase",t),children:o(a)})}},33831:function(e,t,a){"use strict";a.d(t,{m:function(){return h}});var r=a(97458),i=a(60524),s=a(53344),n=a.n(s),o=a(51958),l=a(82319);let c=n()(()=>Promise.resolve().then(a.bind(a,60524)).then(e=>e.CollapsibleItems),{loadableGenerated:{webpack:()=>[null]}}),d=n()(()=>Promise.resolve().then(a.bind(a,60524)).then(e=>e.HoverItems),{loadableGenerated:{webpack:()=>[null]}}),h=e=>{let t=(0,l.m)(),a=(0,o.q)()?t?c:d:i.InitialItems;return(0,r.jsx)(a,{...e})}},17213:function(e,t,a){"use strict";a.d(t,{K:function(){return i}});var r=a(51780);let i=e=>{let{pathname:t}=(0,r.useRouter)();return e(t)}},51958:function(e,t,a){"use strict";a.d(t,{q:function(){return s}});var r=a(7616),i=a(8607);let s=()=>{let[e]=(0,r.KO)(i.k);return e}},82319:function(e,t,a){"use strict";a.d(t,{m:function(){return s}});var r=a(7616),i=a(8607);let s=()=>{let[e]=(0,r.KO)(i.j);return e}},39709:function(e,t,a){"use strict";a.d(t,{T:function(){return c}});var r=a(7616),i=a(52983),s=a(23113),n=a(8607),o=a(8807),l=a.n(o);let c=()=>{let e=(0,s.a)("lgMax"),t=(0,r.Dv)(n.j),a=(0,r.b9)(n.j),[o,c]=(0,i.useState)(void 0);return{toggle:()=>{if(e){a();return}if(t){c(l().animateSlideRight),setTimeout(()=>{a(),c(void 0)},120);return}a(),c(l().animateSlideLeft)},animationStyle:o}}},46091:function(e,t,a){"use strict";a.d(t,{s:function(){return eo}});var r=a(97458),i=a(58977),s=a(60524),n=a(7616),o=a(21657),l=a(61060),c=a(8516),d=a(10893),h=a(17213),u=a(82319),m=a(34254);let p=["/","/home-auth"],f=()=>{let{t:e}=(0,d.$G)("topNav"),t=(0,m.e)(p),a=(0,h.K)(t),i=(0,u.m)()?c.Gs:c.uU;return(0,r.jsxs)(s.HeadingLink,{className:a?i:void 0,href:"/",children:[(0,r.jsx)(l.D,{name:"system.home",size:"sm"})," ",e("sidebarTitles.home")]})};var x=a(23113),v=a(57291),g=a(62266);let j=()=>(0,r.jsx)(g.p,{className:(0,v.cx)(c.WK,c.T$,"font-semibold text-premium-gold-800")}),w=()=>(0,x.a)("lgMax")?(0,r.jsx)(j,{}):null;var b=a(33831),k=a(83380),N=a(82935),y=a(52983);let C=()=>(0,y.useCallback)(e=>({"data-option":e,"data-gtm-event":"main_menu"}),[]);var O=a(10914);let _=[{label:"more.projects.newTitle",items:[{name:"Magnific",href:"https://magnific.ai/",dataOption:"more.projects.magnific"},{name:"Slidesgo",href:"https://slidesgo.com/",dataOption:"more.projects.slidesgo"}]},{label:"more.api.titleNew",items:[{name:"more.api.name",href:"https://www.freepik.com/api",dataOption:"more.api"},{name:"more.contributor.name",href:"https://contributor.freepik.com",dataOption:"more.contributor.name"}]},{label:"more.appsPlugins.title",items:[{name:"more.appsPlugins.freepikTitle",href:"https://www.figma.com/community/plugin/893426972424060133/photos-by-freepik",dataOption:"more.figma.plugins"},{name:"more.appsPlugins.aiFigmaTitle",href:"https://www.figma.com/community/plugin/1253173167259963280/ai-image-generator-by-freepik",dataOption:"more.ai.plugins"},{name:"more.appsPlugins.ios",href:"https://apps.apple.com/us/app/freepik-design-edit-with-ai/id1664092086",dataOption:"more.ios.plugins"},{name:"more.appsPlugins.android",href:"https://play.google.com/store/apps/details?id=com.freepikcompany.freepik",dataOption:"more.android.plugins"}]}],S=()=>{let e=(0,k.Z)();return(0,y.useMemo)(()=>"en"===e?_:_.map(e=>{let{label:t,items:a}=e;return{label:t,items:a.filter(e=>{let{name:t}=e;return"3D"!==t})}}),[e])},M=(0,v.j)("space-y-2",{variants:{isOpen:{true:"columns-1",false:"w-[550px] columns-2"}}}),A=()=>{let{t:e}=(0,d.$G)("topNav"),t=(0,u.m)(),a=(0,x.a)("lgMax"),i=S(),n=(0,N.L)(),o=C();return a&&t?i.map(t=>(0,r.jsx)(s.CollapsibleItems,{label:e(t.label),children:t.items.map(t=>{let{name:a,href:i,dataOption:l,isNew:c}=t;return(0,r.jsxs)(s.ItemLink,{href:n(i),className:"items-center",...o(l),children:[e(a)," ",c&&(0,r.jsx)(O.C,{})]},a)})},t.label)):(0,r.jsx)("div",{className:M({isOpen:t}),children:i.map(t=>(0,r.jsxs)("div",{className:"break-inside-avoid",children:[(0,r.jsx)("p",{className:c.lx,children:e(t.label)}),t.items.map(t=>{let{name:a,href:i,dataOption:l,isNew:c}=t;return(0,r.jsxs)(s.ItemLink,{href:n(i),className:"items-center",...o(l),children:[e(a)," ",c&&(0,r.jsx)(O.C,{})]},a)})]},t.label))})},L=()=>{let{t:e}=(0,d.$G)("topNav");return(0,r.jsx)(b.m,{label:e("sidebarTitles.more"),icon:(0,r.jsx)(l.D,{name:"system.menudots",size:"sm"}),position:"bottom",hideHoverTitle:!0,children:(0,r.jsx)(A,{})})};var P=a(87199),z=a(91394),V=a(68541),Z=a(92699),I=a(770),T=a(37511);let G=()=>(0,u.m)()?(0,r.jsx)(l.D,{name:"shapes.plus",size:"sm"}):(0,r.jsx)("span",{className:"$items-center $justify-center flex size-10 rounded border border-surface-1 group-hover:border-neutral-75 group-hover:bg-surface-1",children:(0,r.jsx)(l.D,{name:"shapes.plus",size:"2xl"})}),E=e=>{let{href:t,icon:a,title:i,badge:n,name:o}=e,{t:l}=(0,d.$G)("topNav"),c=(0,P.f)(),h="".concat((0,Z.$)(t),"#from_element=creating&from_view=").concat(o);return(0,r.jsxs)(s.ItemLink,{href:h,onClick:()=>c("topbar_menu",i,"".concat(o,"_start")),children:[(0,r.jsx)(I.J,{as:a}),(0,r.jsxs)("span",{children:[l(i)," ",n&&(0,r.jsx)(O.C,{className:"ml-1",label:n})]})]})},H=()=>{let{locale:e}=(0,V.V)(),{t}=(0,d.$G)("topNav"),a=(0,u.m)();return(0,r.jsxs)(b.m,{className:"group [&[data-state='open']>span]:border-neutral-75 [&[data-state='open']>span]:bg-surface-1",label:a?t("more.startCreating"):"",icon:(0,r.jsx)(G,{}),hideHoverTitle:!0,children:[!a&&(0,r.jsx)("p",{className:c.lx,children:t("more.startCreating")}),(0,T.l)(e).map(e=>(0,r.jsx)(E,{...e},e.name))]})},D=()=>(0,z.d)()?(0,r.jsx)(H,{}):null,B=[{name:"vectors",href:"/vectors",hrefAuth:"/search?format=search&last_filter=query&last_value=&query=&type=vector",icon:"image.vector",dataOption:""},{name:"photos",href:"/photos",hrefAuth:"/search?ai=excluded&format=search&last_filter=ai&last_value=excluded&query=&type=photo",icon:"image.photo",dataOption:""},{name:"illustrations",href:"/illustrations",hrefAuth:"/search?format=search&last_filter=query&last_value=&query=&type=illustration",icon:"edit.attribution1",dataOption:""},{name:"icons",href:"/icons",hrefAuth:"/search?format=search&last_filter=query&iconType=standard&last_value=&query=&type=icon",icon:"resources.icons-resource",dataOption:""},{name:"templates",href:"/templates",hrefAuth:"/search?format=search&last_filter=query&last_value=&query=&type=template",icon:"tools.template-3",dataOption:""},{name:"mockups",href:"/mockups",hrefAuth:"/search?format=search&last_filter=query&last_value=&query=&type=mockup",icon:"image.mockup",dataOption:""},{name:"3D",href:"/3d-models",hrefAuth:"/3d-models",icon:"image.3d",dataOption:""},{name:"videos",href:"/videos",hrefAuth:"/search?format=search&last_filter=query&last_value=&query=&type=video",icon:"resources.video-resource",dataOption:""},{name:"videoTemplates",href:"/video-templates",hrefAuth:"/video-templates",icon:"image.animated-icon",dataOption:""},{name:"motionGraphics",href:"/motion-graphics",hrefAuth:"/motion-graphics",icon:e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M8 4c.778 0 1.502.356 1.994.948v.001l4.36 5.248.007.008a2.844 2.844 0 0 1 0 3.59l-.007.008-4.36 5.248v-.001a2.6 2.6 0 0 1-1.987.95H8a2.6 2.6 0 0 1-1.994-.948v-.001l-4.361-5.248-.007-.008v-.001a2.84 2.84 0 0 1-.627-1.55L1 12c0-.572.172-1.13.492-1.6l.153-.203 4.36-5.248A2.6 2.6 0 0 1 7.993 4zm4.382.214a1 1 0 0 1 1.337.09l.067.078 4.586 5.836c.406.505.628 1.133.628 1.782l-.01.244a2.84 2.84 0 0 1-.619 1.537l.001.001-4.586 5.836a1 1 0 0 1-1.572-1.236l4.586-5.836.01-.013a.85.85 0 0 0 .177-.39L17 12a.85.85 0 0 0-.19-.533l-.01-.013-4.586-5.836-.06-.084a1 1 0 0 1 .228-1.32m4 0a1 1 0 0 1 1.337.09l.067.078 4.586 5.836c.406.505.628 1.133.628 1.782l-.01.244a2.84 2.84 0 0 1-.619 1.537l.001.001-4.586 5.836a1 1 0 0 1-1.572-1.236l4.586-5.836.01-.013a.85.85 0 0 0 .177-.39L21 12a.85.85 0 0 0-.19-.533l-.01-.013-4.586-5.836-.06-.084a1 1 0 0 1 .228-1.32M8.002 6a.6.6 0 0 0-.451.22l-.007.008-4.355 5.239-.08.12a.84.84 0 0 0 .078.942l4.357 5.244a.6.6 0 0 0 .451.226.6.6 0 0 0 .454-.219l.007-.008 4.36-5.248a.844.844 0 0 0 0-1.048l-4.36-5.248A.6.6 0 0 0 8.003 6"})}),dataOption:""},{name:"more.tools.tunes.title",href:"https://tunes.freepik.com",icon:a(31737).Z,dataOption:"",isNew:!0},{name:"fonts",href:"/fonts",hrefAuth:"/fonts?from_element=filters",icon:"resources.fonts-resource",dataOption:""},{name:"psd",href:"/popular-psd",hrefAuth:"/search?format=search&last_filter=query&last_value=&query=&type=psd",icon:"resources.psd-resource",dataOption:""},{name:"imagesAll",href:"/images",hrefAuth:"/search?format=search&last_filter=query&last_value=&query=",icon:"system.menudots",dataOption:""}];var $=a(84427);let R=e=>{let{icon:t}=e;return"function"==typeof t?(0,r.jsx)(I.J,{as:t}):(0,r.jsx)(l.D,{name:t,size:"sm"})},F=e=>{let{name:t,href:a,icon:i,dataOption:n,isNew:o}=e,{t:l}=(0,d.$G)("topNav"),u=(0,N.L)(),p=(0,m.e)([a]),f=(0,h.K)(p)?c.Gs:void 0,x=C(),v=(0,$.I)(u(null!=a?a:""),{},{from_element:"mainmenu"});return(0,r.jsxs)(s.ItemLink,{href:v,className:f,...x(n),children:[(0,r.jsx)(R,{icon:i}),(0,r.jsxs)("span",{children:[l(t)," ",o&&(0,r.jsx)(O.C,{className:"ml-1"})]})]})},U=()=>B.map(e=>{let{name:t,...a}=e;return(0,r.jsx)(F,{name:t,...a},t)}),J=B.map(e=>e.href),q=(0,m.e)(J),W=(0,m.e)(["/search"]),K=()=>{let{t:e}=(0,d.$G)("topNav"),t=(0,z.d)(),a=(0,h.K)(t?W:q),i=(0,u.m)(),s=a&&!i?c.uU:void 0;return(0,r.jsx)(b.m,{className:s,label:e("sidebarTitles.stock"),icon:(0,r.jsx)(l.D,{name:"image.resources",size:"sm"}),defaultOpen:!0,children:(0,r.jsx)(U,{})})};var Y=a(30088),Q=a(92617),X=a(29667),ee=a(44866),et=a(49505);let ea=[{name:"more.tools.aiAssistant.title",href:"/pikaso/assistant",hrefAuth:"/pikaso/assistant",icon:Y.Z,dataOption:"more.tools.aiassistant",isNew:!0},{name:"more.tools.imageGenerator.title",href:"/ai/image-generator",hrefAuth:"https://www.freepik.com/pikaso/ai-image-generator",icon:"ai.ai-prompt",dataOption:"more.tools.imagegenerator"},{name:"more.tools.aiVideoGenerator.title",href:"/ai/video-generator",hrefAuth:"https://www.freepik.com/pikaso/ai-video-generator",icon:"media.video-linear",dataOption:"more.tools.videogenerator"},{name:"more.tools.upscale.title",href:"/ai/image-upscaler",hrefAuth:"https://www.freepik.com/pikaso/upscaler",icon:"tools.upscale",dataOption:"more.tools.upscale.title"},{name:"more.tools.retouch.title",href:"/ai/remove-objects",hrefAuth:"https://www.freepik.com/pikaso/retouch",icon:"tools.retouch",dataOption:"more.tools.retouch"},{name:"more.tools.reimagine.title",href:"/ai/reimagine",hrefAuth:"https://www.freepik.com/pikaso/reimagine",icon:"system.refresh",dataOption:"more.tools.reimagine"},{name:"more.tools.bgRemover.title",href:"/ai/background-remover",icon:"tools.remove-bk",dataOption:"more.tools.bgRemover.title"},{name:"more.tools.expand.title",href:"/ai/image-extender",hrefAuth:"https://www.freepik.com/pikaso/expand",icon:"tools.expand-3",dataOption:"more.tools.expand"},{name:"more.tools.photoEditor.title",href:"/ai/photo-editor",hrefAuth:"/pikaso/adjust",icon:"tools.image-editor",dataOption:"more.tools.photoeditor"},{name:"more.tools.videoUpscaler.title",href:"https://www.freepik.com/pikaso/video-upscaler",hrefAuth:"https://www.freepik.com/pikaso/video-upscaler",icon:"tools.upscale",dataOption:"more.tools.videoupscaler"},{name:"more.tools.videoLipSync.title",href:"https://www.freepik.com/pikaso/video-lip-sync",hrefAuth:"https://www.freepik.com/pikaso/video-lip-sync",icon:X.Z,dataOption:"more.tools.videolipsync"},{name:"more.tools.videoSoundfx.title",href:"https://www.freepik.com/pikaso/video-soundfx",hrefAuth:"https://www.freepik.com/pikaso/video-soundfx",icon:Q.Z,dataOption:"more.tools.videosoundfx"},{name:"more.tools.videoEditor.title",href:"/ai/video-editor",hrefAuth:"https://www.freepik.com/pikaso/video-editor",icon:et.Z,dataOption:"more.tools.videoeditor"},{name:"pikaso",href:"/ai/sketch-to-image",hrefAuth:"https://www.freepik.com/pikaso/sketch",icon:"edit.attribution2",dataOption:"pikaso"},{name:"more.tools.mockupEditor.title",href:"/mockup-generator",hrefAuth:"https://www.freepik.com/pikaso/mockup",icon:"image.mockup",dataOption:"more.tools.mockupEditor.title"},{name:"more.tools.editDesigner.title",href:"https://www.freepik.com/designer",hrefAuth:"/designer/edit?template=new-artboard",icon:"system.designer",dataOption:"more.tools.editdesigner"},{name:"more.tools.iconGenerator.title",href:"/ai/icon-generator",hrefAuth:"/ai/icon-generator/tool",icon:"resources.icons",dataOption:"more.tools.icongenerator"},{name:"more.tools.aiVoiceGenerator.title",href:"/ai/voice-generator",hrefAuth:"/pikaso/audio",icon:ee.Z,dataOption:"more.tools.voicegenerator"},{name:"more.tools.aiFreepik.title",href:"/ai",icon:"system.menudots",dataOption:"more.tools.aiFreepik"}],er=()=>{let{t:e}=(0,d.$G)("topNav"),t=(0,z.d)(),a=(0,N.L)(),i=C();return ea.map(n=>{let{name:o,href:l,hrefAuth:c,icon:d,dataOption:h,isNew:u}=n,m=(0,$.I)(a(c&&t?c:l),{},{from_element:"mainmenu"});return(0,r.jsxs)(s.ItemLink,{href:m,...i(h),children:[(0,r.jsx)(R,{icon:d}),(0,r.jsxs)("span",{children:[e(o)," ",u&&(0,r.jsx)(O.C,{className:"ml-1"})]})]},o)})},ei=()=>{let{t:e}=(0,d.$G)("topNav");return(0,r.jsx)(b.m,{label:e("sidebarTitles.tools"),icon:(0,r.jsx)(l.D,{name:"ai.ai-stars",size:"sm"}),defaultOpen:!0,children:(0,r.jsx)(er,{})})};var es=a(39709),en=a(8607);let eo=e=>{let{href:t,projects:a}=e,{toggle:l,animationStyle:c}=(0,es.T)(),d=(0,u.m)(),h=(0,n.b9)(en.k);return(0,i.$)(d),(0,r.jsx)(s.Root,{isOpen:d,onChange:()=>l(),children:(0,r.jsxs)("div",{onMouseEnter:()=>{h(!0)},onTouchStart:()=>{h(!0)},children:[(0,r.jsx)(s.Overlay,{}),(0,r.jsxs)(s.Content,{className:c,children:[(0,r.jsx)(s.Header,{children:(0,r.jsx)(o.d,{href:t,onClick:()=>l()})}),(0,r.jsxs)(s.Body,{className:"overflow-x-hidden [&::-webkit-scrollbar]:hidden",children:[(0,r.jsx)(f,{}),a,(0,r.jsx)(ei,{}),(0,r.jsx)(K,{}),(0,r.jsx)(D,{}),(0,r.jsx)(L,{}),(0,r.jsx)(w,{})]})]})]})})}},34254:function(e,t,a){"use strict";a.d(t,{e:function(){return r}});let r=e=>t=>e.includes(t)},8607:function(e,t,a){"use strict";a.d(t,{j:function(){return s},k:function(){return n}});var r=a(24399);function i(e){let t=(0,r.cn)(e,(e,a,r)=>{let i=null!=r?r:!e(t);a(t,i)});return t}let s=i(!1),n=i(!1)},21657:function(e,t,a){"use strict";a.d(t,{d:function(){return d}});var r=a(97458),i=a(91394),s=a(63482),n=a(57291),o=a(58058),l=a.n(o),c=a(52983);let d=e=>{let{href:t,isTransparent:a=!1,onClick:n}=e,o=(0,i.d)(),d=(0,c.useMemo)(()=>t?{href:t}:{href:o?"/home-auth":"/",as:"/"},[t,o]);return(0,r.jsx)(l(),{...d,onClick:n,children:(0,r.jsx)(s.X,{className:h({isTransparent:a})})})},h=(0,n.j)("block h-4 w-[108px] duration-150 ease-in-out lg:h-5 lg:w-[135px] dark:text-white",{variants:{isTransparent:{true:"text-white",false:"text-piki-blue-500"}}})},81402:function(e,t,a){"use strict";a.d(t,{V:function(){return N}});var r=a(97458),i=a(37814),s=a(15465),n=a(52983),o=a(79393),l=a(61060),c=a(9249),d=a(57291),h=a(7616),u=a(54606),m=a(39709),p=a(8607),f=a(15718),x=a(88765),v=a(33673),g=a(21657);let j=e=>{let{children:t,withoutLogo:a=!1,alternates:i}=e,{toggle:s}=(0,m.T)(),{href:n}=(0,f.hW)(),o=(0,x.U)(),j="no-data"!==(0,h.Dv)(u.k).status,w=(0,h.b9)(p.k),b=(0,r.jsxs)("ul",{className:(0,d.cx)("flex items-center gap-2",!j&&"pointer-events-none invisible"),children:[t,(0,r.jsx)(v.Y,{alternates:i})]});return a?b:(0,r.jsxs)("nav",{"aria-label":"Topbar",className:(0,d.cx)("flex w-full items-center justify-between pl-3 pr-4 pt-3 lg:pl-5",o?"absolute z-[1] h-16 py-4 text-white":"pr-4 sm:h-[52px]"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("button",{className:"relative top-0.5 p-2 lg:hidden",onClick:()=>{s(),w(!0)},children:[(0,r.jsx)(l.D,{className:(0,d.cx)("text-surface-foreground-1",o?"text-white":"text-surface-foreground-1"),name:"system.menuburger",size:"md"}),(0,r.jsx)(c.T,{children:"Close menu"})]}),(0,r.jsx)(g.d,{href:n,isTransparent:o})]}),b]})};var w=a(85805);let b=()=>{let e=(0,f.Uu)();return(0,f.Rz)()?null:(0,r.jsx)(w.U,{isTransparent:e})},k={location:"header_menu",action:"prices"},N=e=>{let{mode:t="default",origin:a,withoutLogo:l,alternates:c,href:d,logoutUrl:h}=e,[u]=(0,s.n)(k);return(0,n.useEffect)(()=>{u()},[u]),(0,r.jsx)(i.e,{brazeKey:"8086d9ee-1f81-4508-ba9f-3a661635ac90",children:(0,r.jsx)(o.s,{mode:t,origin:a,href:d,logoutUrl:h,children:(0,r.jsx)(j,{withoutLogo:l,alternates:c,children:(0,r.jsx)(b,{})})})})}},83897:function(e,t,a){"use strict";a.d(t,{A:function(){return i}});var r=a(97458);let i=e=>{let{children:t}=e;return(0,r.jsx)("main",{className:"max-w-[100vw] flex-1",children:t})}},22196:function(e,t,a){"use strict";a.d(t,{D:function(){return o}});var r=a(97458),i=a(57291),s=a(7616),n=a(72538);let o=e=>{let{children:t}=e,a=(0,s.b9)(n.tQ),o=(0,s.Dv)(n.xk),l=(0,s.Dv)(n.tL);return(0,r.jsxs)("div",{className:(0,i.cx)("relative grid grid-cols-1 bg-surface-0 text-surface-foreground-0 sm:grid-cols-[auto_minmax(0,1fr)]",o&&"h-screen overflow-hidden sm:h-auto sm:overflow-auto"),children:[o&&(0,r.jsx)("div",{className:"absolute inset-0 z-10 bg-overlay-dialog sm:hidden",onClick:()=>a({mode:l,openInDesktop:!1,openInMobile:!1})}),t]})}},58932:function(e,t,a){"use strict";a.d(t,{J:function(){return h}});var r=a(97458),i=a(57291),s=a(7616),n=a(52983),o=a(40197),l=a(23113),c=a(72538);let d=(0,i.j)("h-full transition-[width] duration-100 ease-in-out sm:sticky sm:left-0 sm:top-0 sm:w-16",{variants:{mobileState:{open:"absolute z-20",closed:"hidden sm:block"},mode:{anchored:"xl:w-[240px]",floating:"xl:w-16"}},defaultVariants:{mobileState:"closed",mode:"anchored"}}),h=e=>{let{children:t}=e,a=(0,s.Dv)(c.tL),i=(0,s.Dv)(c.xk),h=(0,s.Dv)(c.jL),u=(0,l.a)("smMax"),m=(0,n.useRef)(null),p=(0,s.b9)(c.tQ),[f,x]=(0,n.useState)(a);return(0,n.useEffect)(()=>{x(a);let e=m.current;if(!e)return;let t=e=>{if(e.target!==e.currentTarget)return};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[a]),(0,n.useEffect)(()=>{!u&&i&&p({mode:a,openInMobile:!1,openInDesktop:h})},[u,i,p,a,h]),(0,r.jsx)("div",{className:d({mobileState:i?"open":"closed",mode:f}),ref:m,children:(0,r.jsx)("nav",{"aria-label":"Sidebar",className:(0,o.m6)("bg-surface-1 sm:z-[2] w-full sm:sticky fixed h-full sm:h-dvh",!i&&"translate-x-full sm:translate-x-0 sm:sticky sm:top-0 sm:left-0"),children:t})})}},52762:function(e,t,a){"use strict";a.d(t,{U:function(){return tL}});var r=a(97458),i=a(37814),s=a(52983);let n=(0,s.createContext)(void 0),o=()=>{let e=(0,s.useContext)(n);if(!e)throw Error("usePreferencesSidebarContext must be used within a PreferencesProvider");return e};var l=a(87420),c=a(88706),d=a(770),h=a(41853),u=a(96065),m=a(81550),p=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-49 141 512 512",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M455.678 404.322 352 300.644V216c0-13.807-11.193-25-25-25s-25 11.193-25 25v34.645l-77.322-77.322c-9.764-9.763-25.592-9.763-35.355 0l-231 231A25 25 0 0 0-24 447H1v126c0 30.327 24.673 55 55 55h302c30.327 0 55-24.673 55-55V447h25a25 25 0 0 0 17.678-42.678M363 573c0 2.757-2.243 5-5 5h-96v-95c0-13.807-11.193-25-25-25h-60c-13.807 0-25 11.193-25 25v95H56c-2.757 0-5-2.243-5-5V382.355l156-156 156 156z"})}),f=a(90231),x=a(74447),v=a(27488),g=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M14.25 1.5H3.75A3.754 3.754 0 0 0 0 5.25v7.5a3.754 3.754 0 0 0 3.75 3.75h10.5A3.754 3.754 0 0 0 18 12.75v-7.5a3.754 3.754 0 0 0-3.75-3.75M1.5 12.75v-7.5C1.5 4.01 2.51 3 3.75 3h3v12h-3c-1.24 0-2.25-1.01-2.25-2.25m15 0c0 1.24-1.01 2.25-2.25 2.25h-6V3h6c1.24 0 2.25 1.01 2.25 2.25zM5.25 8.25A.75.75 0 0 1 4.5 9h-.75a.75.75 0 1 1 0-1.5h.75a.75.75 0 0 1 .75.75m0 3a.75.75 0 0 1-.75.75h-.75a.75.75 0 1 1 0-1.5h.75a.75.75 0 0 1 .75.75M3 5.25a.75.75 0 0 1 .75-.75h.75a.75.75 0 1 1 0 1.5h-.75A.75.75 0 0 1 3 5.25"})}),j=a(7616),w=a(10893),b=a(17573);let k=(e,t)=>{let[a,r]=(0,s.useState)(null),[i,n]=(0,s.useState)(!1),o=(0,s.useMemo)(()=>new b.qg({baseUrl:"/api/user/preferences",timeout:5e3}),[]),l=(0,s.useMemo)(()=>new b.gY(e,o,new b.kf),[e,o]),c=(0,s.useCallback)(()=>{n(!0),l.getPinnedItems().then(e=>{r(e)}).finally(()=>{n(!1)})},[l]);(0,s.useEffect)(()=>{i||a||t||c()},[c,i,a,t]);let d=(0,s.useCallback)(e=>{(null==a?void 0:a.includes(e))?l.removePinnedItem(e):l.addPinnedItem(e),c()},[l,c,a]),h=(0,s.useCallback)(e=>{var t;return null!==(t=null==a?void 0:a.includes(e))&&void 0!==t&&t},[a]),u=(0,s.useCallback)(async()=>o.getTheme(),[o]),m=(0,s.useCallback)(async e=>o.setTheme(e),[o]);return(0,s.useMemo)(()=>({pinnedSidebar:a,togglePinnedSidebar:d,isPinned:h,isLoading:i,getTheme:u,setTheme:m}),[a,d,h,i,u,m])},N=e=>{let{children:t,userId:a,waitingData:i}=e,s=k(a,i);return(0,r.jsx)(n.Provider,{value:s,children:t})};var y=a(23113),C=a(54606),O=a(53344),_=a.n(O),S=a(72538);let M=()=>{let[e]=(0,j.KO)(S.km);return e};var A=a(46927);let L=_()(()=>a.e(9960).then(a.bind(a,29960)).then(e=>e.DialogItem),{loadableGenerated:{webpack:()=>[29960]},ssr:!1}),P=_()(()=>Promise.all([a.e(9578),a.e(6343)]).then(a.bind(a,31105)).then(e=>e.PopoverItem),{loadableGenerated:{webpack:()=>[31105]},ssr:!1}),z=e=>{let{icon:t,title:i,isOpen:n,onOpen:o,onClose:l,children:c,href:d,asLink:h}=e;(0,s.useEffect)(()=>{a.e(9960).then(a.bind(a,29960)),Promise.all([a.e(9578),a.e(6343)]).then(a.bind(a,31105))},[]);let u=(0,y.a)("smMax"),m=!M();return(0,r.jsx)(m?V:u?L:P,{href:d,icon:t,title:i,isOpen:n,onOpen:o,onClose:l,asLink:h,children:c})},V=e=>{let{href:t,icon:a,title:i,children:n,asLink:o}=e,l=(0,s.useRef)(null);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.t,{href:t,ref:l,icon:a,asLink:o,children:i}),(0,r.jsx)("div",{className:"sr-only",children:n})]})};var Z=a(59445),I=a(29456),T=a(27793),G=a(79395),E=a(52873),H=a(3766);let D="#from_element=mainmenu",B=()=>{let e=(0,Z.HI)(),t=(0,G.a)("userprofile_dropdown"),a=(0,Z.j7)(),{t:i}=(0,w.$G)("topNav"),{loginUrl:s}=(0,T.J)(),n=(0,l.$T)(s),o=(0,j.Dv)(C.k),c=(0,I.H)(),d=(()=>{if("no-data"===o.status)return null;if(!o.isLoggedIn)return{cta:i("creditsCta.signIn"),description:i("creditsCta.getStartedDescription"),dataCy:"creditsCta.signIn",onClick:()=>window.location.href="".concat(n).concat(D)};if(!c)return null;if(null==e?void 0:e.profile.isFromCoupon)return{cta:i("creditsCta.upgrade"),description:i("creditsCta.aiCodeLimited"),dataCy:"creditsCta.upgrade",onClick:()=>window.location.href="".concat(E.WR.href).concat(D)};if((null==e?void 0:e.status)==="unpaid")return{cta:i("creditsCta.subscriptionOnHold"),description:i("creditsCta.updatePaymentMethod"),dataCy:"creditsCta.subscriptionOnHold",onClick:()=>window.location.href="".concat(H.zy).concat(D)};if(!e)return{cta:i("creditsCta.getAPlan"),description:i("creditsCta.getAPlanDescription"),dataCy:"creditsCta.getAPlan",onClick:()=>window.location.href="".concat(E.WR.href).concat(D)};let{permissions:r}=e;return r.canAccessToAddons?{cta:i("creditsCta.buyCredits"),description:i("creditsCta.buyCreditsDescription"),dataCy:"creditsCta.buyCredits",onClick:t}:r.canUpgradeProduct||r.canUpgradeFrequency?{cta:i("creditsCta.upgrade"),description:i("creditsCta.upgradeDescription"),dataCy:"creditsCta.upgrade",onClick:()=>window.location.href="".concat(a).concat(D)}:r.canAccessToCheckout?{cta:i("creditsCta.getAPlan"),description:i("creditsCta.getAPlanDescription"),dataCy:"creditsCta.getAPlan",onClick:()=>window.location.href="".concat(E.WR.href).concat(D)}:null})();if(!d)return null;let{cta:h,description:u,dataCy:m,onClick:p}=d;return(0,r.jsx)("button",{"data-cy":m,onClick:p,className:"w-full max-w-[240px] rounded-lg bg-surface-2 px-4 py-[9px] duration-100 ease-in hover:bg-surface-3 lg:w-[208px]",children:(0,r.jsxs)("div",{className:"flex flex-col items-start gap-[2px] text-sm",children:[(0,r.jsx)("p",{className:"text-left font-semibold text-premium-gold-700 dark:text-premium-gold-600",children:h}),(0,r.jsx)("p",{className:"text-left font-normal text-surface-foreground-0",children:u})]})})};var $=a(40508),R=a(98245),F=a(45365),U=a(86045),J=a(57291),q=a(39956),W=a(19974),K=a(82636);let Y=(0,s.forwardRef)((e,t)=>{let{as:a,children:i,className:s,...n}=e;return(0,r.jsx)(null!=a?a:"button",{ref:t,className:(0,J.cx)("transition-all duration-150 ease-out hover:bg-surface-2 p-[9px] rounded-lg flex items-center cursor-pointer no-underline visited:text-inherit text-surface-foreground-0",s),...n,children:i})});Y.displayName="HoverIcons";var Q=a(20409),X=a(84427),ee=a(83380),et=a(82935);let ea=()=>(0,s.useCallback)(e=>({"data-option":e,"data-gtm-event":"main_menu"}),[]),er=()=>{let{t:e}=(0,w.$G)("topNav"),t=(0,et.L)(),a=ea(),i=(0,ee.Z)(),s="es"===i;return(0,r.jsxs)("div",{className:"flex flex-col gap-8 sm:flex-row",children:[(0,r.jsxs)("div",{className:"space-y-[7px] sm:min-w-[160px]",children:[(0,r.jsx)("p",{className:"mb-2 flex h-10 items-center border-b border-surface-border-0 text-sm font-semibold text-surface-foreground-0",children:e("more.title")}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("a",{href:(0,X.I)("https://www.freepik.com/api",{},{from_element:"mainmenu"}),className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.api"),children:e("more.api.name")}),(0,r.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.freepikcompany.freepik",className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.android.plugins"),children:e("more.appsPlugins.android")}),(0,r.jsx)("a",{href:"https://apps.apple.com/us/app/freepik-design-edit-with-ai/id1664092086?l=".concat(i),className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.ios.plugins"),children:e("more.appsPlugins.ios")}),s?(0,r.jsx)("a",{href:"https://contributor.freepik.es",className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.contributor.name"),children:e("more.contributor.name")}):(0,r.jsx)("a",{href:"https://contributor.freepik.com",className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.contributor.name"),children:e("more.contributor.name")})]})]}),(0,r.jsxs)("div",{className:"space-y-[7px] lg:min-w-[160px]",children:[(0,r.jsx)("p",{className:"mb-2 flex h-10 items-center border-b border-surface-border-0 text-sm font-semibold text-surface-foreground-0",children:e("more.company.title")}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("a",{href:t("/company/about-us"),className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.company.aboutUs"),children:e("more.company.aboutUs")}),(0,r.jsx)("a",{href:t("/pricing"),className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.company.pricing"),children:e("more.company.pricing")}),(0,r.jsx)("a",{href:t("/ai/partners"),className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.company.aiPartnersProgram"),children:e("more.company.aiPartnersProgram")}),(0,r.jsx)("a",{href:t("/events"),className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.company.events"),children:e("more.company.events")}),s?(0,r.jsx)("a",{href:"https://www.freepik.com/blog/es/",className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.company.blog"),children:e("more.company.blog")}):(0,r.jsx)("a",{href:"https://www.freepik.com/blog/",className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.company.blog"),children:e("more.company.blog")}),(0,r.jsx)("a",{href:t("/legal/terms-of-use"),className:"flex items-center text-sm text-surface-foreground-4 hover:text-surface-foreground-0",...a("more.company.terms"),children:e("more.company.terms")})]})]})]})};var ei=a(49959),es=a.n(ei);let en=e=>{let{isOpen:t}=e,a=(0,y.a)("smMax");return(0,r.jsx)(r.Fragment,{children:a?(0,r.jsx)(W.VY,{"data-sidebar-safezone":!0,side:"top",align:"end",sideOffset:8,alignOffset:-8,className:(0,J.cx)("border-surface-border-0 bg-surface-1 text-surface-foreground-4 flex flex-col gap-8 rounded-lg border px-6 pb-4 pt-2 shadow-lg lg:origin-top-left bottom-full w-[274px] max-h-[80vh] overflow-y-auto",Q.V,t?es().fadeIn:es().fadeOut),children:(0,r.jsx)(er,{})}):(0,r.jsx)(W.h_,{children:(0,r.jsx)(W.VY,{"data-sidebar-safezone":!0,side:"right",sideOffset:24,alignOffset:-16,align:"end",className:(0,J.cx)("border-surface-border-0 bg-surface-1 text-surface-foreground-4 flex flex-col gap-8 rounded-lg border px-6 pb-4 pt-2 shadow-lg ml-2 sm:ml-0 sm:origin-top-left bottom-full sm:w-[402px] w-[224px] z-10",t?es().fadeIn:es().fadeOut),children:(0,r.jsx)(er,{})})})})},eo=()=>{let[e,t]=(0,s.useState)(!1),a=!M();return(0,r.jsxs)(W.fC,{open:e,onOpenChange:e=>{t(e)},children:[(0,r.jsx)(W.xz,{asChild:!0,children:(0,r.jsx)(Y,{className:"xl:pt-[5px]",children:(0,r.jsx)(d.J,{as:K.Z,className:"size-[14px]"})})}),a?(0,r.jsx)("div",{className:"sr-only",children:(0,r.jsx)(er,{})}):(0,r.jsx)(en,{isOpen:e})]})};var el=a(91394),ec=a(74955),ed=a(69856),eh=a(72937),eu=a(37555);let em=()=>{let[e,t]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=window.matchMedia("(min-width: 1280px)"),a=()=>t(e.matches);return a(),e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]),e},ep=(0,J.cx)("text-surface-foreground-0 cursor-pointer hover:bg-surface-2 flex h-6 items-center gap-3 rounded px-1 text-xs data-[state=checked]:bg-surface-2 outline-none focus:outline-none focus-visible:outline-none"),ef=()=>{let[e,t]=(0,eu.Fg)(),{t:a}=(0,w.$G)("topNav"),[i,n]=(0,s.useState)(!1),l=em(),c=(0,q.G)(),h=l&&c,{getTheme:u}=o(),m=(0,el.d)();(0,s.useEffect)(()=>{!localStorage.getItem("fp:theme")&&m&&u().then(e=>{t(e)})},[u,t,m]),(0,eu.Ey)();let p=e=>{t(e),n(!1)},f=[{value:"light",icon:eh.Z,label:a("light")},{value:"dark",icon:ed.Z,label:a("dark")},{value:"system",icon:ec.Z,label:a("system")}];return(0,r.jsxs)(W.fC,{open:i,onOpenChange:n,children:[(0,r.jsx)(W.xz,{asChild:!0,children:(0,r.jsxs)("button",{className:(0,J.cx)("flex items-center rounded-lg p-[9px] outline-none transition-colors hover:bg-surface-2 focus:outline-none focus-visible:outline-none",i&&"bg-surface-1"),"aria-label":a("toggleTheme"),children:[(0,r.jsx)(d.J,{as:ed.Z,className:"hidden size-[14px] text-surface-foreground-0 dark:block"}),(0,r.jsx)(d.J,{as:eh.Z,className:"block size-[14px] text-surface-foreground-0 dark:hidden"})]})}),(0,r.jsx)(W.h_,{children:(0,r.jsx)(W.VY,{side:h?"top":"right",sideOffset:h?8:10,className:"z-20 w-28 rounded-lg border border-surface-border-0 bg-surface-1 p-2 text-sm text-surface-foreground-0 shadow-lg outline-none focus:outline-none focus-visible:outline-none",onOpenAutoFocus:e=>e.preventDefault(),children:(0,r.jsx)("div",{className:"flex flex-col gap-1 text-xs outline-none focus:outline-none",children:f.map(t=>(0,r.jsxs)("button",{onClick:()=>p(t.value),className:(0,J.cx)(ep,e===t.value&&"bg-surface-2"),children:[(0,r.jsx)(d.J,{as:t.icon,className:"size-[14px]"}),(0,r.jsx)("span",{children:t.label})]},t.value))})})})]})},ex=_()(()=>Promise.all([a.e(5286),a.e(9410)]).then(a.bind(a,39410)).then(e=>e.NotificationCenter),{loadableGenerated:{webpack:()=>[39410]}}),ev="https://support.freepik.com/s/?language=en_US",eg=(0,J.j)("flex-col items-center justify-between xl:gap-[6px]",{variants:{anchored:{true:"hidden sm:flex xl:hidden",false:"xl:flex"}}}),ej=(0,J.j)("flex-row items-center justify-between gap-4",{variants:{anchored:{true:"flex sm:hidden xl:flex",false:"hidden"}}}),ew=()=>{let e=(0,j.Dv)(C.k),t=(0,q.G)(),{translations:a,ready:i}=(0,R.v)(),s="no-data"!==e.status&&e.isLoggedIn;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:(0,J.cx)(eg({anchored:t}),"gap-1 xl:gap-[8px]"),children:[s&&(0,r.jsx)(ex,{translations:a,ready:i}),(0,r.jsx)(Y,{as:"a",href:ev,target:"_blank",children:(0,r.jsx)(d.J,{as:U.Z,className:"size-3.5"})}),(0,r.jsx)(ef,{}),(0,r.jsx)(eo,{})]}),(0,r.jsxs)("div",{className:ej({anchored:t}),children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(Y,{as:"a",href:ev,target:"_blank",children:(0,r.jsx)(d.J,{as:U.Z,className:"size-3.5"})}),(0,r.jsx)(Y,{as:"a",href:"https://discord.gg/a9etNXNmYY",target:"_blank",children:(0,r.jsx)(d.J,{as:F.Z,className:"size-3.5"})}),(0,r.jsx)(ef,{}),s&&(0,r.jsx)(ex,{translations:a,ready:i})]}),(0,r.jsx)(eo,{})]})]})};var eb=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 14 14","aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"m5.181 9.65 2.893 2.896.418-.418a4.72 4.72 0 0 0 1.225-4.504l-.145-.591L10.803 5.8l.128.128a1.82 1.82 0 0 0 2.326.237 1.774 1.774 0 0 0 .224-2.699L10.573.55A1.82 1.82 0 0 0 8.248.314a1.773 1.773 0 0 0-.225 2.698l.173.173L6.962 4.42l-.581-.143A4.71 4.71 0 0 0 1.872 5.5l-.417.418 2.893 2.894L0 13.164.835 14zm.909-4.225 1.24.303 2.539-2.541-1.012-1.01a.59.59 0 0 1 .079-.903.64.64 0 0 1 .8.113l2.908 2.91a.592.592 0 0 1-.08.904.64.64 0 0 1-.8-.113l-.963-.964-2.539 2.542.306 1.248a3.54 3.54 0 0 1-.532 2.924L3.161 5.957a3.53 3.53 0 0 1 2.929-.532"})}),ek=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 14 14","aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"m5.181 9.65 2.893 2.896.418-.418a4.72 4.72 0 0 0 1.225-4.504l-.145-.591L10.803 5.8l.128.128a1.82 1.82 0 0 0 2.326.237 1.774 1.774 0 0 0 .224-2.699L10.573.55A1.82 1.82 0 0 0 8.248.314a1.773 1.773 0 0 0-.225 2.698l.173.173L6.962 4.42l-.581-.143A4.71 4.71 0 0 0 1.872 5.5l-.417.418 2.893 2.894L0 13.164.835 14z"})}),eN=a(30088),ey=a(28873),eC=a(48412),eO=a(29667),e_=a(44866),eS=a(21623),eM=a(2166),eA=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,"aria-hidden":!0,...e,children:[(0,r.jsx)("path",{d:"M11.578 19.688H3.281a.7.7 0 0 1-.703-.704V7.687h18.375V12a1.172 1.172 0 0 0 2.344 0V3.703A3.053 3.053 0 0 0 20.25.656H3.281A3.053 3.053 0 0 0 .234 3.703v15.281a3.053 3.053 0 0 0 3.047 3.047h8.297a1.172 1.172 0 0 0 0-2.343M3.281 3H20.25c.39 0 .703.314.703.703v1.64H2.578v-1.64c0-.389.314-.703.703-.703"}),(0,r.jsx)("path",{d:"m22.875 17.48-7.106-7.107a1.17 1.17 0 0 0-.83-.342h-3.314c-.647 0-1.172.525-1.172 1.172v3.314c0 .31.122.61.342.83l7.107 7.106c.576.577 1.34.89 2.156.89.815 0 1.58-.318 2.156-.89l.661-.66c.577-.577.89-1.341.89-2.157s-.318-1.58-.89-2.156m-1.66 2.653-.66.66a.703.703 0 0 1-.994 0l-6.764-6.759v-1.659h1.66l6.763 6.764c.132.131.207.31.207.497a.74.74 0 0 1-.211.497"})]}),eL=a(77130),eP=a(87532),ez=a(66337),eV=a(49505);let eZ=[{title:"topNav:aiSuite.authenticated.imageGenerator",href:"https://www.freepik.com/pikaso/ai-image-generator",dataOption:"more.tools.imagegenerator",icon:e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 14 14","aria-hidden":!0,...e,children:[(0,r.jsxs)("g",{fill:"currentColor",clipPath:"url(#image-generator_svg__a)",children:[(0,r.jsx)("path",{d:"M13.043 5.62a.684.684 0 0 0-.684.683v5.127q0 .092-.038.172l-2.075-2.075a.68.68 0 0 0-.484-.2.68.68 0 0 0-.484.2l-.91.907L5.16 7.227a.683.683 0 0 0-.968 0L1.64 9.778v-6.06a.41.41 0 0 1 .41-.41h5.77a.684.684 0 0 0 0-1.367H2.05A1.78 1.78 0 0 0 .273 3.72v7.744a1.78 1.78 0 0 0 1.778 1.744h9.898a1.78 1.78 0 0 0 1.778-1.777V6.303a.684.684 0 0 0-.684-.684"}),(0,r.jsx)("path",{d:"m13.779 2.382-1.004-.383a.34.34 0 0 1-.2-.2L12.193.796a.344.344 0 0 0-.643 0l-.383 1.003c-.035.093-.006.164-.2.2l-1.003.383a.344.344 0 0 0 0 .642l1.004.383a.34.34 0 0 1 .2.2l.382 1.003c.112.295.53.295.643 0l.382-1.003a.34.34 0 0 1 .2-.2l1.003-.383a.344.344 0 0 0 0-.642M8.034 6.453l.585.224a.33.33 0 0 1 .191.192l.224.585c.11.284.514.284.621 0l.224-.585a.33.33 0 0 1 .192-.192l.585-.224c.284-.11.284-.514 0-.62l-.585-.225a.33.33 0 0 1-.192-.191l-.224-.585c-.11-.285-.514-.285-.62 0l-.225.585a.33.33 0 0 1-.191.191l-.585.224a.331.331 0 0 0 0 .621"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"image-generator_svg__a",children:(0,r.jsx)("path",{d:"M0 0h14v14H0z"})})})]}),idCookie:14},{title:"topNav:aiSuite.authenticated.imageEditor",href:"https://www.freepik.com/pikaso/image-editor",dataOption:"more.tools.image-editor",icon:e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"m7.446 10.534-2.962 2.899a.78.78 0 0 1-.546.223H2.843c-1.137 0-2.063-.911-2.063-2.031V2.813c0-1.12.911-2.032 2.031-2.032h8.5c1.12 0 2.032.911 2.032 2.031V5.22a.781.781 0 1 1-1.563 0V2.812a.47.47 0 0 0-.469-.468h-8.5a.47.47 0 0 0-.468.469v5.42l1.403-1.41a.78.78 0 0 1 1.106 0l2.599 2.6a.78.78 0 0 1-.006 1.11m-.352-5.065a1.563 1.563 0 0 0 3.125 0c0-.862-.701-1.563-1.563-1.563-.861 0-1.562.701-1.562 1.563M16 9.599c0 .542-.211 1.052-.595 1.435l-4.737 4.737a.78.78 0 0 1-.552.229h-2.21a.78.78 0 0 1-.781-.782V13.01c0-.207.082-.406.229-.552L12.09 7.72a2.034 2.034 0 0 1 2.873 0l.442.442c.384.383.595.894.595 1.436m-1.562 0a.47.47 0 0 0-.138-.332l-.442-.443a.47.47 0 0 0-.663 0l-4.507 4.509v1.104h1.104L14.3 9.93a.47.47 0 0 0 .137-.332"})}),idCookie:15},{title:"topNav:aiSuite.authenticated.assistant",href:"https://www.freepik.com/pikaso/assistant",dataOption:"sidebar.ai-assistant",icon:eN.Z,idCookie:16,hasBadge:!0},{title:"topNav:aiSuite.authenticated.imageUpscaler",href:"https://www.freepik.com/pikaso/upscaler",dataOption:"sidebar.upscale",icon:ez.Z,idCookie:17},{title:"topNav:aiSuite.authenticated.reimagine",href:"https://www.freepik.com/pikaso/reimagine",dataOption:"sidebar.reimagine",icon:eL.Z,idCookie:18},{title:"topNav:aiSuite.authenticated.sketchToImage",href:"https://www.freepik.com/pikaso/sketch",dataOption:"sidebar.sketch",icon:e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,"aria-hidden":!0,...e,children:[(0,r.jsx)("path",{d:"m22.444.89.665.666c.572.572.891 1.34.891 2.152 0 .815-.314 1.58-.89 2.156l-9.92 9.919c-.22.22-.52.342-.83.342H9.048a1.17 1.17 0 0 1-1.172-1.172v-3.314c0-.314.122-.61.342-.83L18.136.89a3.053 3.053 0 0 1 4.308 0M10.219 13.781h1.66l6.754-6.755-1.66-1.659-6.754 6.755zm10.073-8.419 1.158-1.158a.71.71 0 0 0-.005-.998l-.66-.66a.707.707 0 0 0-.994 0l-1.158 1.157z"}),(0,r.jsx)("path",{d:"M20.24 19.547a1.171 1.171 0 1 1 1.74 1.57 7 7 0 0 0-.535.694l-.008.011C20.772 22.744 19.867 24 18 24c-1.786 0-2.78-1.144-3.577-2.063-.703-.806-1.139-1.265-1.837-1.265-.75 0-1.519.562-2.405 1.218-1.275.943-2.86 2.11-5.156 2.11a5.025 5.025 0 0 1-5.02-5.03c0-2.55 1.893-4.697 4.406-4.997A1.175 1.175 0 0 1 5.714 15a1.175 1.175 0 0 1-1.027 1.303 2.674 2.674 0 0 0-2.343 2.667 2.69 2.69 0 0 0 2.681 2.686c1.528 0 2.616-.801 3.764-1.65l.002-.001c1.12-.825 2.277-1.677 3.795-1.677 1.805 0 2.803 1.149 3.605 2.072.698.802 1.125 1.256 1.809 1.256.614 0 .91-.333 1.542-1.21l.023-.031c.208-.29.422-.588.676-.868"})]}),idCookie:19}],eI=[{title:"topNav:aiSuite.authenticated.videoGenerator",href:"https://www.freepik.com/pikaso/ai-video-generator",dataOption:"more.tools.videogenerator",icon:ey.Z,idCookie:20},{title:"topNav:aiSuite.authenticated.videoEditor",href:"https://www.freepik.com/pikaso/video-editor",dataOption:"more.tools.videoeditor",icon:eV.Z,idCookie:21},{title:"topNav:aiSuite.authenticated.videoUpscaler",href:"https://www.freepik.com/pikaso/video-upscaler",dataOption:"more.tools.videoTools.title",icon:e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 14 14","aria-hidden":!0,...e,children:[(0,r.jsx)("path",{d:"M12.249 11.25h-2.042a.875.875 0 1 0 0 1.75h2.36A1.434 1.434 0 0 0 14 11.57v-2.36a.875.875 0 0 0-1.75 0zM0 2.432v2.36a.875.875 0 1 0 1.75 0V2.75h2.042a.875.875 0 1 0 0-1.75h-2.36A1.433 1.433 0 0 0 0 2.432M1.75 9.209a.875.875 0 0 0-1.75 0v2.36A1.433 1.433 0 0 0 1.432 13h2.36a.875.875 0 0 0 0-1.75H1.75z"}),(0,r.jsx)("mask",{id:"upscale-video_svg__a",fill:"#fff",children:(0,r.jsx)("path",{d:"M12.567 1h-2.36a.875.875 0 0 0 0 1.75h2.042v2.042a.875.875 0 1 0 1.75 0v-2.36A1.433 1.433 0 0 0 12.567 1"})}),(0,r.jsx)("path",{d:"M12.567 1h-2.36a.875.875 0 0 0 0 1.75h2.042v2.042a.875.875 0 1 0 1.75 0v-2.36A1.433 1.433 0 0 0 12.567 1"}),(0,r.jsx)("path",{d:"M10.207-9.667v21.334h2.36-.013A9.26 9.26 0 0 1 6.035 8.96a9.26 9.26 0 0 1-2.703-6.52v2.35a9.8 9.8 0 0 1 .484-3.037C5.058-2.208 8.998-5.05 13.124-5c5.227-.113 9.905 4.565 9.791 9.792V-7.917H10.207c5.227-.113 9.905 4.565 9.792 9.792a9.85 9.85 0 0 1-1.857 5.737c-1.768 2.495-4.868 4.083-7.935 4.055zC6.587-9.7 2.942-7.83.853-4.887a11.6 11.6 0 0 0-2.188 6.762c-.135 6.16 5.383 11.677 11.542 11.542h2.042L1.582 2.75v2.042c-.136 6.159 5.383 11.677 11.542 11.541 4.864.06 9.51-3.295 10.972-7.96.38-1.162.57-2.389.57-3.581v-2.36a12.14 12.14 0 0 0-3.543-8.553 12.14 12.14 0 0 0-8.543-3.546h-2.373",mask:"url(#upscale-video_svg__a)"}),(0,r.jsx)("path",{d:"M8.582 6.327 6.629 5.161A1.226 1.226 0 0 0 5.56 5.09a1 1 0 0 0-.41.307.72.72 0 0 0-.151.436v2.333c0 .154.052.305.15.437.1.131.242.237.41.307a1.23 1.23 0 0 0 1.069-.072l1.953-1.166a.9.9 0 0 0 .308-.295A.7.7 0 0 0 9 7a.7.7 0 0 0-.11-.377.9.9 0 0 0-.308-.295"})]}),idCookie:22},{title:"topNav:aiSuite.authenticated.videoExtend",href:"https://www.freepik.com/pikaso/video-extender",dataOption:"sidebar.extend",icon:e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 14 14","aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M7 0a.59.59 0 0 0-.589.589V13.41a.589.589 0 1 0 1.178 0V.59A.59.59 0 0 0 7 0M4.808 1.808a.527.527 0 0 0-.526-.526H1.75c-.644 0-1.166.522-1.166 1.166v9.104c0 .644.522 1.166 1.166 1.166h2.532a.527.527 0 0 0 0-1.053H1.935a.35.35 0 0 1-.35-.35v-8.63c0-.193.157-.35.35-.35h2.347a.527.527 0 0 0 .526-.527m4.384 10.384c0 .29.236.526.527.526h2.531c.644 0 1.167-.522 1.167-1.166V2.448c0-.644-.523-1.166-1.167-1.166H9.72a.527.527 0 1 0 0 1.052h2.347c.192 0 .35.158.35.35v8.631a.35.35 0 0 1-.35.35H9.719a.527.527 0 0 0-.527.527"})}),idCookie:24},{title:"topNav:aiSuite.authenticated.lipSync",href:"https://www.freepik.com/pikaso/video-lip-sync",dataOption:"sidebar.lip-sync",icon:eO.Z,idCookie:25},{title:"topNav:aiSuite.authenticated.sfxForVideo",href:"https://www.freepik.com/pikaso/video-soundfx",dataOption:"sidebar.sound-effects",icon:eP.Z,idCookie:26}],eT=[{title:"topNav:aiSuite.authenticated.voiceover",href:"https://www.freepik.com/pikaso/voiceover",dataOption:"sidebar.voiceovers",icon:e_.Z,idCookie:27},{title:"topNav:aiSuite.authenticated.sfxGenerator",href:"https://www.freepik.com/audio/sound-effects/generator",dataOption:"sidebar.sound-effects",icon:e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 14 14","aria-hidden":!0,...e,children:[(0,r.jsx)("g",{clipPath:"url(#burst_svg__a)",children:(0,r.jsx)("path",{d:"m13.955 6.931-2.881-1.539 1.996-3.941-4.127 1.747L7.245.017 5.603 3.102-.004.088l3.39 5.32L.095 7.031l3.36 1.484-1.247 3.397 3.381-1.16 1.727 3.225 1.608-3.142 4.894 2.653-2.674-5.053zM8.43 9.24l-1.137 2.222L6.15 9.325l-2.001.688.779-2.123-2.077-.917L5.07 5.88 3.383 3.234l2.698 1.45 1.164-2.187 1.17 2.192 2.172-.92-1.07 2.114 1.963 1.049-1.911 1.022 1.412 2.67z"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"burst_svg__a",children:(0,r.jsx)("path",{d:"M0 0h14v14H0z"})})})]}),idCookie:28},{title:"topNav:aiSuite.authenticated.music",href:"https://www.freepik.com/audio/music",dataOption:"sidebar.pikaso-audio",icon:eM.Z,idCookie:29}],eG=[{title:"topNav:aiSuite.authenticated.designer",href:"https://www.freepik.com/designer/edit",dataOption:"sidebar.designer",icon:eA,idCookie:30},{title:"topNav:aiSuite.authenticated.mockupGenerator",href:"https://www.freepik.com/pikaso/mockup",dataOption:"sidebar.mockup-editor",icon:eS.Z,idCookie:31},{title:"topNav:aiSuite.authenticated.iconGenerator",href:"/ai/icon-generator/tool",dataOption:"sidebar.icon-generator",icon:e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 17",width:16,height:16,"aria-hidden":!0,...e,children:(0,r.jsx)("path",{d:"M14.384 7.751h-4.079a1.56 1.56 0 0 1-1.557-1.557V2.116c0-.859.699-1.557 1.557-1.557h4.079c.858 0 1.557.698 1.557 1.557v4.078c0 .859-.699 1.557-1.557 1.557m-4.079-5.635v4.078h4.079V2.116zM3.767 16.5A3.74 3.74 0 0 1 .03 12.764a3.74 3.74 0 0 1 3.736-3.736 3.74 3.74 0 0 1 3.736 3.736A3.74 3.74 0 0 1 3.767 16.5m0-5.916c-1.202 0-2.18.978-2.18 2.18s.978 2.18 2.18 2.18 2.18-.979 2.18-2.18-.978-2.18-2.18-2.18M5.402 7.74a.711.711 0 0 0 1.032-.75L6.13 5.225l1.284-1.251A.71.71 0 0 0 7.02 2.76l-1.775-.257L4.453.896a.712.712 0 0 0-1.276 0l-.793 1.607L.61 2.76a.71.71 0 0 0-.394 1.213l1.283 1.25-.303 1.767a.711.711 0 0 0 1.033.75l1.586-.835zm9.972 3.03a1.936 1.936 0 0 0-2.738 0l-.512.513-.512-.512a1.936 1.936 0 0 0-2.738 2.738l.512.512 2.262 2.262c.263.263.69.263.952 0l2.262-2.262.512-.512a1.936 1.936 0 0 0 0-2.738"})}),idCookie:32}],eE={title:"topNav:aiSuite.authenticated.allTools",href:"/pikaso/explore?all",dataOption:"sidebar.allTools",icon:eC.Z},eH=[...eZ,...eI,...eT,...eG],eD=e=>{let{children:t,className:a,...i}=e;return(0,r.jsx)("span",{className:(0,J.cx)("flex items-center gap-2",a),...i,children:t})};var eB=a(86101);let e$=e=>{let{children:t,tooltipContent:a}=e,i=(0,q.G)(),s=(0,y.a)("sm"),n=(0,y.a)("2xl"),o=s&&!n;return!o&&(i||o)?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsx)(eB.u,{side:"right",sideOffset:5,backgroundColor:"reborn",colorText:"reborn",trigger:t,children:a})},eR=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),{pinnedSidebar:t,togglePinnedSidebar:a,isPinned:i}=o(),s=(0,q.G)(),n=(0,l.L3)();return(0,r.jsx)("div",{className:"space-y-1",children:null==t?void 0:t.map(t=>{let o=eH.find(e=>e.idCookie===t);if(!o)return null;let l=o.icon,c=e(o.title),h=(0,X.I)(n(o.href),{},{from_element:"pinned_tools"});return(0,r.jsxs)(eF,{isPinned:i(o.idCookie),onPinClick:()=>a(o.idCookie),href:h,dataOption:o.dataOption,children:[(0,r.jsx)(e$,{tooltipContent:c,children:(0,r.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center",children:(0,r.jsx)(d.J,{as:l,className:"size-3.5"})})}),s&&(0,r.jsx)(eD,{className:"inline min-w-0 max-w-full flex-1 sm:hidden sm:max-w-36 xl:inline",children:(0,r.jsx)("span",{className:"block truncate sm:hidden lg:block",children:c})})]},o.idCookie)})})},eF=e=>{let{children:t,isPinned:a,onPinClick:i,href:s,dataOption:n}=e,o=(0,j.Dv)(C.k),l="no-data"!==o.status&&o.isLoggedIn,c=(0,q.G)();return(0,r.jsxs)("div",{className:"group relative",children:[(0,r.jsx)("a",{href:s,"data-option":n,"data-gtm-event":"pinned_tool",className:(0,J.cx)("text-sm lg:w-full sm:w-8 w-full rounded-lg flex items-center gap-1 sm:h-8 h-10 group-hover:bg-surface-2 text-surface-foreground-0 py-1"),children:t}),c&&(0,r.jsx)("div",{className:"hidden sm:hidden xl:flex",children:i&&l&&(0,r.jsx)("button",{onClick:()=>{i()},className:(0,J.cx)("opacity-0 group-hover:opacity-100 hover:text-surface-foreground-0 transition-opacity text-surface-foreground-4 flex-shrink-0 absolute right-1 top-1 sm:top-0 z-10 p-2 rounded"),children:(0,r.jsx)(d.J,{className:"size-3",as:a?ek:eb})})})]})};var eU=a(73409),eJ=a(92699);let eq=()=>{let e=(0,eJ.L)();return t=>{let a=e(t);return(0,X.I)(a,{},{from_element:"mainmenu"})}};var eW=a(21098);let eK=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"flex items-center gap-6 border-t border-surface-border-0 pt-[11px] text-sm",children:t})},eY=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"grid grid-cols-2 gap-6 pb-4 sm:grid-cols-2 lg:grid-cols-4",children:t})},eQ=e=>{let{children:t}=e;return(0,r.jsx)("h3",{className:"mb-2 hidden text-lg font-semibold text-surface-foreground-0 sm:block",children:t})},eX=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"flex flex-col",children:t})},e0=e=>{let{title:t,icon:a,children:i}=e;return(0,r.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,r.jsxs)("div",{className:"flex h-10 flex-row items-center gap-2 border-b border-surface-border-0 py-[10px]",children:[(0,r.jsx)(d.J,{className:"size-[12px] text-surface-foreground-0",as:a}),(0,r.jsx)("h4",{className:"text-xs font-medium uppercase text-surface-foreground-0",children:t})]}),(0,r.jsx)("div",{className:"flex flex-col gap-2",children:i})]})};var e1=a(97374),e5=a(46324);let e2=e=>{let{children:t,matchPaths:a,isPinned:i,onPinClick:s}=e,n=(0,e5.usePathname)(),o=null==a?void 0:a.some(e=>n.startsWith(e));return(0,r.jsxs)("div",{className:"group flex h-8 w-full items-center gap-[6px] sm:h-auto",children:[(0,r.jsx)(e1.fC,{className:(0,J.cx)("text-sm flex items-center",o?"bg-surface-2 text-surface-foreground-0":"text-surface-foreground-4 hover:text-surface-foreground-0"),children:t}),s&&(0,r.jsx)("button",{onClick:()=>s(),className:(0,J.cx)("opacity-0 group-hover:opacity-100 transition-opacity text-surface-foreground-4 hidden md:block focus:outline-none",i&&"opacity-100"),children:(0,r.jsx)(d.J,{className:"size-3",as:i?ek:eb})})]})};var e3=a(51363),e8=a(60319);let e4=["/business-marketing","/health-wellness-lifestyle","/nature","/people-emotions","/food-drink","/education-learning","/sport","/industry-technology"],e7=["/textures","/cartoons","/drawings","/silhouettes","/backgrounds","/patterns","/clip-art","/symbols-and-signs"],e6=["/social-media","/flyers","/posters","/banners","/stationery","/greeting-cards","/business-cards","/invitation-cards","/logos"];[...e4,...e7,...e6];let e9=[{href:"https://www.freepik.com/audio/sound-effects",dataOption:"sidebar.sound-effects",title:"soundEffects",icon:eP.Z,idCookie:1},{href:"https://www.freepik.com/audio/music",dataOption:"sidebar.pikaso-audio",title:"music",icon:eP.Z,idCookie:2}],te=[{href:"/vectors",dataOption:"sidebar.vectors",title:"vectors",matchPaths:["/vectors",...e7],icon:e3.Z,idCookie:3},{href:"/photos",dataOption:"sidebar.photos",title:"photos",matchPaths:["/photos",...e4],icon:e3.Z,idCookie:4},{href:"/illustrations",dataOption:"sidebar.illustrations",title:"illustrations",matchPaths:["/illustrations"],icon:e3.Z,idCookie:5},{href:"/icons",dataOption:"sidebar.icons",title:"icons",matchPaths:["/icons"],icon:e3.Z,idCookie:6},{href:"/3d-models",dataOption:"sidebar.3d-models",title:"3D",matchPaths:["/3d-models"],icon:e3.Z,idCookie:7}],tt=[{href:"/videos",dataOption:"sidebar.videos",title:"videos",matchPaths:["/videos"],icon:e8.Z,idCookie:9},{href:"/video-templates",dataOption:"sidebar.video-templates",title:"videoTemplates",icon:e8.Z,idCookie:10},{href:"/motion-graphics",dataOption:"sidebar.motion-graphics",title:"motionGraphics",icon:e8.Z,idCookie:15}],ta=[{href:"/templates",dataOption:"sidebar.templates",title:"templates",matchPaths:["/templates"],icon:eA,idCookie:11},{href:"/mockups",dataOption:"sidebar.mockups",title:"mockups",matchPaths:["/mockups"],icon:eA,idCookie:12},{href:"/fonts",dataOption:"sidebar.fonts",title:"fonts",matchPaths:["/fonts"],icon:eA,idCookie:13},{href:"/popular-psd",dataOption:"sidebar.psd",title:"psd",icon:eA,matchPaths:["/popular-psd",...e6],idCookie:14}];[...e9,...te,...tt,...ta];let tr=()=>{let{t:e}=(0,w.$G)("topNav"),t=eq(),a=(0,l.L3)();return(0,r.jsx)(e0,{title:e("common:tags.audio"),icon:eP.Z,children:e9.map(i=>{var s,n;return(0,r.jsx)(e2,{children:(0,r.jsx)(eU.IW,{variant:"popover",href:t(i.href),as:t(i.href),matchPaths:null!==(n=null===(s=i.matchPaths)||void 0===s?void 0:s.map(a))&&void 0!==n?n:[i.href],"data-option":i.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(eD,{children:e(i.title)})})},i.dataOption)})})};var ti=a(18053),ts=a(19213);let tn=e=>{let{icon:t,text:a}=e;return(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2 py-[5px] text-surface-foreground-0",children:[(0,r.jsx)(d.J,{as:t,className:"size-[14px]"}),a]})},to=()=>{let{t:e}=(0,w.$G)("topNav"),t=eq();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eU.IW,{variant:"popover",href:t("/user/collections"),"data-option":"sidebar.collections","data-gtm-event":"main_menu",children:(0,r.jsx)(tn,{icon:ti.Z,text:e("myCollections")})}),(0,r.jsx)(eU.IW,{variant:"popover",href:t("/user/downloads"),"data-option":"sidebar.downloads","data-gtm-event":"main_menu",children:(0,r.jsx)(tn,{icon:ts.Z,text:e("downloads")})})]})},tl=()=>{let{t:e}=(0,w.$G)("topNav"),t=eq(),a=(0,l.L3)();return(0,r.jsx)(e0,{title:e("common:coverV2.tools.auth.design"),icon:eA,children:ta.map(i=>{var s,n;return(0,r.jsx)(e2,{children:(0,r.jsx)(eU.IW,{variant:"popover",href:t(i.href),as:t(i.href),matchPaths:null!==(n=null===(s=i.matchPaths)||void 0===s?void 0:s.map(a))&&void 0!==n?n:[i.href],"data-option":i.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(eD,{children:e(i.title)})})},i.dataOption)})})};var tc=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:16,height:16,"aria-hidden":!0,...e,children:[(0,r.jsxs)("g",{fillRule:"evenodd",clipPath:"url(#picture_svg__a)",clipRule:"evenodd",children:[(0,r.jsx)("path",{d:"M9.773 4.09c0 1.13-.92 2.05-2.05 2.05-1.131 0-2.051-.92-2.051-2.05 0-1.131.92-2.05 2.05-2.05 1.131 0 2.051.919 2.051 2.05m-1.171 0a.88.88 0 0 0-1.758 0 .88.88 0 0 0 1.758 0"}),(0,r.jsx)("path",{d:"M1.523 0h8.954C11.317 0 12 .683 12 1.523v8.954c0 .84-.683 1.523-1.523 1.523H1.523C.683 12 0 11.317 0 10.477V1.523C0 .683.683 0 1.523 0m8.954 1.172H1.523a.35.35 0 0 0-.351.351v5.763l2.181-2.142a.586.586 0 0 1 .826.005l3.39 3.404 1.473-1.517a.586.586 0 0 1 .838-.004l.948.964V1.523a.35.35 0 0 0-.351-.351m-8.954 9.656h8.954a.35.35 0 0 0 .351-.351v-.81L9.465 8.281l-1.47 1.515a.586.586 0 0 1-.836.005l-3.4-3.414-2.587 2.54v1.549c0 .193.158.351.351.351"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"picture_svg__a",children:(0,r.jsx)("path",{d:"M0 0h12v12H0z"})})})]});let td=()=>{let{t:e}=(0,w.$G)("topNav"),t=(0,y.a)("smMax"),a=eq(),i=(0,l.L3)(),s=[...te];return t&&s.push({href:"/images",dataOption:"sidebar.images",icon:x.Z,title:"images",idCookie:8}),(0,r.jsx)(e0,{title:e("common:coverV2.tools.auth.image"),icon:tc,children:s.map(t=>{var s,n;return(0,r.jsx)(e2,{children:(0,r.jsx)(eU.IW,{variant:"popover",href:a(t.href),as:a(t.href),matchPaths:null!==(n=null===(s=t.matchPaths)||void 0===s?void 0:s.map(i))&&void 0!==n?n:[t.href],"data-option":t.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(eD,{children:e(t.title)})})},t.dataOption)})})},th=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),t=eq(),a=(0,l.L3)();return(0,r.jsx)(e0,{title:e("common:coverV2.tools.auth.video"),icon:e8.Z,children:tt.map(i=>{var s,n;return(0,r.jsx)(e2,{children:(0,r.jsx)(eU.IW,{variant:"popover",href:t(i.href),as:t(i.href),matchPaths:null!==(n=null===(s=i.matchPaths)||void 0===s?void 0:s.map(a))&&void 0!==n?n:[i.href],"data-option":i.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(eD,{children:e(i.title)})})},i.dataOption)})})},tu=()=>{let e=(0,j.Dv)(C.k),{t}=(0,w.$G)("topNav");return(0,r.jsxs)(eX,{children:[(0,r.jsx)(eQ,{children:t("sidebarTitles.stock")}),(0,r.jsxs)(eY,{children:[(0,r.jsx)(td,{}),(0,r.jsx)(th,{}),(0,r.jsx)(tr,{}),(0,r.jsx)(tl,{})]}),!("no-data"===e.status||!e.isLoggedIn)&&(0,r.jsx)(eK,{children:(0,r.jsx)(to,{})})]})},tm=[{title:"topNav:aiSuite.anonymous.aiImageGenerator",href:"/ai/image-generator",dataOption:"sidebar.ai-image-generator",icon:e3.Z},{title:"topNav:aiSuite.anonymous.aiPhotoEditor",href:"/ai/photo-editor",dataOption:"sidebar.ai-photo-editor",icon:e3.Z},{title:"topNav:aiSuite.anonymous.aiAssistant",href:"https://www.freepik.com/pikaso/assistant",dataOption:"sidebar.ai-assistant",icon:e3.Z,hasBadge:!0},{title:"topNav:aiSuite.anonymous.aiImageUpscaler",href:"/ai/image-upscaler",dataOption:"sidebar.ai-image-upscaler",icon:e3.Z},{title:"topNav:aiSuite.anonymous.aiImageExtender",href:"/ai/image-extender",dataOption:"sidebar.ai-image-extender",icon:e3.Z},{title:"topNav:aiSuite.anonymous.aiBackgroundRemover",href:"/ai/background-remover",dataOption:"sidebar.ai-background-remover",icon:e3.Z}],tp=[{title:"topNav:aiSuite.anonymous.aiVideoGenerator",href:"/ai/video-generator",dataOption:"sidebar.ai-video-generator",icon:e8.Z},{title:"topNav:aiSuite.anonymous.videoEditor",href:"/ai/video-editor",dataOption:"sidebar.ai-video-editor",icon:e8.Z},{title:"topNav:aiSuite.anonymous.aiVideoUpscaler",href:"/ai/video-upscaler",dataOption:"sidebar.ai-video-upscaler",icon:e8.Z}],tf=[{title:"topNav:aiSuite.anonymous.textToSpeech",href:"/ai/voice-generator",dataOption:"sidebar.ai-voice-generator",icon:eP.Z},{title:"topNav:aiSuite.anonymous.aiSfxGenerator",href:"/ai/sound-effect-generator",dataOption:"sidebar.ai-sound-effect-generator",icon:eP.Z}],tx=[{title:"topNav:aiSuite.anonymous.designer",href:"https://www.freepik.com/designer",dataOption:"sidebar.designer",icon:eA},{title:"topNav:aiSuite.anonymous.mockupGenerator",href:"/mockup-generator",dataOption:"sidebar.ai-mockup-generator",icon:eA},{title:"topNav:aiSuite.anonymous.aiIconGenerator",href:"/ai/icon-generator",dataOption:"sidebar.ai-icon-generator",icon:eA}],tv={title:"topNav:aiSuite.anonymous.aiNews",href:"/ai",dataOption:"sidebar.all-tools",icon:eC.Z};[...tm,...tp,...tf,...tx];let tg=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),t=eq();return(0,r.jsx)(e0,{title:e("common:tags.audio"),icon:eP.Z,children:tf.map(a=>(0,r.jsx)(e2,{children:(0,r.jsx)("a",{href:t(a.href),"data-option":a.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(eD,{children:e(a.title)})})},a.dataOption))})},tj=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),t=eq();return(0,r.jsx)("a",{href:t(tv.href),"data-option":tv.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(tn,{icon:tv.icon,text:e(tv.title)})})},tw=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),t=eq();return(0,r.jsx)(e0,{title:e("common:coverV2.tools.auth.design"),icon:eA,children:tx.map(a=>(0,r.jsx)(e2,{children:(0,r.jsx)("a",{href:t(a.href),"data-option":a.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(eD,{children:e(a.title)})})},a.dataOption))})};var tb=a(48897);let tk=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),t=eq();return(0,r.jsx)(e0,{title:e("common:coverV2.tools.auth.image"),icon:tc,children:tm.map(a=>(0,r.jsx)(e2,{children:(0,r.jsx)("a",{href:t(a.href),"data-option":a.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsxs)(eD,{children:[e(a.title),a.hasBadge&&(0,r.jsx)(tb.C,{})]})})},a.dataOption))})},tN=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),t=eq();return(0,r.jsx)(e0,{title:e("common:coverV2.tools.auth.video"),icon:e8.Z,children:tp.map(a=>(0,r.jsx)(e2,{children:(0,r.jsx)("a",{href:t(a.href),"data-option":a.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(eD,{children:e(a.title)})})},a.dataOption))})},ty=()=>{let{t:e}=(0,w.$G)("topNav");return(0,r.jsxs)(eX,{children:[(0,r.jsx)(eQ,{children:e("sidebarTitles.tools")}),(0,r.jsxs)(eY,{children:[(0,r.jsx)(tk,{}),(0,r.jsx)(tN,{}),(0,r.jsx)(tg,{}),(0,r.jsx)(tw,{})]}),(0,r.jsx)(eK,{children:(0,r.jsx)(tj,{})})]})},tC=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),t=eq(),{togglePinnedSidebar:a,isPinned:i}=o();return(0,r.jsx)(e0,{title:e("common:tags.audio"),icon:eP.Z,children:eT.map(s=>(0,r.jsx)(e2,{isPinned:i(s.idCookie),onPinClick:()=>a(s.idCookie),children:(0,r.jsx)("a",{href:t(s.href),"data-option":s.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(eD,{children:e(s.title)})})},s.dataOption))})},tO=()=>{let{t:e}=(0,w.$G)("topNav"),t=eq();return(0,r.jsx)("a",{href:t(eE.href),"data-option":eE.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(tn,{icon:eE.icon,text:e(eE.title)})})},t_=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),t=eq(),{togglePinnedSidebar:a,isPinned:i}=o();return(0,r.jsx)(e0,{title:e("common:coverV2.tools.auth.design"),icon:eA,children:eG.map(s=>(0,r.jsx)(e2,{isPinned:i(s.idCookie),onPinClick:()=>a(s.idCookie),children:(0,r.jsx)("a",{href:t(s.href),"data-option":s.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(eD,{children:e(s.title)})})},s.dataOption))})},tS=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),t=eq(),{togglePinnedSidebar:a,isPinned:i}=o();return(0,r.jsx)(e0,{title:e("common:coverV2.tools.auth.image"),icon:tc,children:eZ.map(s=>(0,r.jsx)(e2,{isPinned:i(s.idCookie),onPinClick:()=>a(s.idCookie),children:(0,r.jsx)("a",{href:t(s.href),"data-option":s.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsxs)(eD,{children:[e(s.title)," ",s.hasBadge&&(0,r.jsx)(tb.C,{})]})})},s.dataOption))})},tM=()=>{let{t:e}=(0,w.$G)(["common","topNav"]),t=eq(),{togglePinnedSidebar:a,isPinned:i}=o();return(0,r.jsx)(e0,{title:e("common:coverV2.tools.auth.video"),icon:e8.Z,children:eI.map(s=>(0,r.jsx)(e2,{isPinned:i(s.idCookie),onPinClick:()=>a(s.idCookie),children:(0,r.jsx)("a",{href:t(s.href),"data-option":s.dataOption,"data-gtm-event":"main_menu",children:(0,r.jsx)(eD,{children:e(s.title)})})},s.dataOption))})},tA=()=>{let{t:e}=(0,w.$G)("topNav");return(0,r.jsxs)(eX,{children:[(0,r.jsx)(eQ,{children:e("sidebarTitles.tools")}),(0,r.jsxs)(eY,{children:[(0,r.jsx)(tS,{}),(0,r.jsx)(tM,{}),(0,r.jsx)(tC,{}),(0,r.jsx)(t_,{})]}),(0,r.jsx)(eK,{children:(0,r.jsx)(tO,{})})]})},tL=e=>{let{domain:t}=(0,l.Vx)(),{t:a}=(0,w.$G)("topNav"),s=eq(),n=(0,j.Dv)(C.k),o=(0,j.b9)(S.km),d=(0,q.G)(),u=null;return"client"===n.status&&n.isLoggedIn&&(u=n.fullInfo.id),(0,r.jsx)(i.e,{brazeKey:"8086d9ee-1f81-4508-ba9f-3a661635ac90",children:(0,r.jsx)(N,{userId:u,waitingData:"client"!==n.status,children:(0,r.jsx)(eU.sW,{canClientNavigate:!!e.enableClientSideNavigation,children:(0,r.jsxs)("div",{onMouseEnter:()=>{o(!0)},onTouchStart:()=>{o(!0)},"data-sidebar-safezone":!0,className:"flex h-full flex-col justify-stretch",children:[(0,r.jsxs)("div",{className:"sticky top-0 z-10 flex h-16 shrink-0 items-center justify-between px-4 sm:h-4 xl:h-16",children:[d&&(0,r.jsx)("div",{className:"pl-2 sm:hidden xl:block",children:(0,r.jsx)(h.T,{href:t,mode:"default"})}),(0,r.jsx)(tP,{})]}),(0,r.jsxs)(c.fC,{className:"flex-1 overflow-hidden pl-4 pr-2",children:[(0,r.jsxs)(c.l_,{className:"size-full pr-2",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(e$,{tooltipContent:a("sidebarTitles.home"),children:(0,r.jsxs)(eU.IW,{href:"/",className:(0,eW.c)({anchored:d}),matchPaths:["/","/home-auth"],children:[(0,r.jsx)($.h,{icon:p}),d&&(0,r.jsx)("span",{className:"inline sm:hidden xl:inline",children:a("sidebarTitles.home")})]})}),(0,r.jsx)(e$,{tooltipContent:a("sidebarTitles.community"),children:(0,r.jsxs)("a",{href:s("https://www.freepik.com/pikaso/community"),className:(0,eW.c)({anchored:d}),children:[(0,r.jsx)($.h,{icon:m.Z}),d&&(0,r.jsx)("span",{className:"inline sm:hidden xl:inline",children:a("sidebarTitles.community")})]})}),(0,r.jsx)(tz,{}),"no-data"===n.status||n.isLoggedIn&&(0,r.jsx)(e$,{tooltipContent:a("myCreations"),children:(0,r.jsxs)(eU.IW,{href:s("https://www.freepik.com/pikaso/projects"),className:(0,eW.c)({anchored:d}),children:[(0,r.jsx)($.h,{icon:f.Z}),d&&(0,r.jsx)("span",{className:"inline sm:hidden xl:inline",children:a("myCreations")})]})})]}),(0,r.jsx)(tV,{})]}),(0,r.jsx)(c.LW,{orientation:"vertical",className:"absolute right-0 top-0 h-full w-2 touch-none select-none p-px transition-colors",children:(0,r.jsx)(c.bU,{className:"relative flex-1 rounded-full bg-[#c8c8c8] dark:bg-[#424242]"})})]}),(0,r.jsxs)("div",{className:"sticky bottom-0 z-10 mt-auto flex flex-col gap-4 p-4",children:[(0,r.jsx)("div",{className:"hidden xl:block",children:d&&(0,r.jsx)(B,{})}),(0,r.jsx)(ew,{})]})]})})})})},tP=()=>{let e=(0,y.a)("smMax"),t=(0,j.b9)(S.xk),a=(0,j.b9)(S.tL);return(0,r.jsx)("button",{"aria-label":"Toggle sidebar",className:"flex items-center rounded-lg p-[9px] transition-all duration-150 ease-out hover:bg-surface-2 sm:hidden xl:flex",onClick:()=>{if(e){t(e=>!e);return}a(e=>"anchored"===e?"floating":"anchored")},children:(0,r.jsx)(d.J,{className:"size-[14px] text-surface-foreground-0",as:e?u.Z:g})})},tz=()=>{let{t:e}=(0,w.$G)("topNav"),[t,a]=(0,s.useState)(""),i=(0,j.Dv)(C.k),n=eq();return(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(z,{href:n("no-data"!==i.status&&i.isLoggedIn?"/pikaso/explore":"https://www.freepik.com/pikaso/"),icon:v.Z,asLink:!1,title:e("sidebarTitles.tools"),isOpen:"tools"===t,onOpen:()=>a("tools"),onClose:()=>a(""),children:"no-data"!==i.status&&i.isLoggedIn?(0,r.jsx)(tA,{}):(0,r.jsx)(ty,{})}),(0,r.jsx)(z,{asLink:!0,href:n("/images"),icon:x.Z,title:e("sidebarTitles.stock"),isOpen:"stock"===t,onOpen:()=>a("stock"),onClose:()=>a(""),children:(0,r.jsx)(tu,{})})]})},tV=()=>{let{pinnedSidebar:e}=o(),{t}=(0,w.$G)("topNav"),a=(0,q.G)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mb-[15px] mt-4 border-t border-surface-border-1"}),a&&(0,r.jsx)("p",{className:"mb-1 hidden h-8 items-center text-xs font-semibold text-surface-foreground-4 xl:flex",children:t("sidebarTitles.pinned")}),e&&(0,r.jsx)(eR,{})]})}},46927:function(e,t,a){"use strict";a.d(t,{t:function(){return d}});var r=a(97458),i=a(770),s=a(52983),n=a(39956),o=a(72856),l=a(21098),c=a(73409);let d=(0,s.forwardRef)((e,t)=>{let a=(0,n.G)(),s=(0,o.Y)(),d=(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)(i.J,{as:e.icon,className:"flex size-[14px] w-8 items-center justify-center"}),a&&(0,r.jsx)("p",{className:"inline sm:hidden xl:inline",children:e.children})]});return s||!e.href?(0,r.jsx)("button",{ref:t,className:(0,l.c)({anchored:a}),onClick:e.onClick,children:d}):e.asLink?(0,r.jsx)(c.IW,{href:e.href,className:(0,l.c)({anchored:a}),ref:t,children:d}):(0,r.jsx)("a",{href:e.href,className:(0,l.c)({anchored:a}),ref:t,children:d})});d.displayName="PopoverTrigger"},48897:function(e,t,a){"use strict";a.d(t,{C:function(){return n}});var r=a(97458),i=a(57291),s=a(10893);let n=e=>{let{className:t,label:a="badges.new"}=e,{t:n}=(0,s.$G)("topNav");return(0,r.jsx)("span",{className:(0,i.cx)("bg-piki-blue-100 text-piki-blue-900 dark:text-piki-blue-200 dark:bg-[#2E3035] rounded-sm p-1 text-2xs font-semibold relative align-middle leading-none tracking-wide",t),children:n(a)})}},40508:function(e,t,a){"use strict";a.d(t,{h:function(){return s}});var r=a(97458),i=a(770);let s=e=>{let{children:t,icon:a,className:s}=e;return(0,r.jsxs)("div",{className:"flex w-8 items-center justify-center",children:[a&&(0,r.jsx)(i.J,{as:a,className:s||"size-[14px]"}),t]})}},73409:function(e,t,a){"use strict";a.d(t,{IW:function(){return c},sW:function(){return u}});var r=a(97458),i=a(58058),s=a.n(i),n=a(46324),o=a(52983),l=a(40197);let c=(0,o.forwardRef)(function(e,t){let a=h(),{href:i,as:o,matchPaths:c,className:d,children:u,variant:m="default",...p}=e,f=[i,...null!=c?c:[]].includes((0,n.usePathname)()),x="";return(x="popover"===m?(0,l.m6)(d,f&&"text-surface-foreground-accent-0 hover:text-surface-foreground-accent-0"):"trigger"===m?null!=d?d:"":(0,l.m6)(f&&"bg-surface-2",d),a)?(0,r.jsx)(s(),{href:i,as:o,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)("a",{ref:t,...p,className:x,children:u})}):e.as?(0,r.jsx)("a",{ref:t,...e,href:e.as,className:x}):(0,r.jsx)("a",{ref:t,href:null!=o?o:i,...p,className:x,children:u})}),d=(0,o.createContext)(void 0),h=()=>{let e=(0,o.useContext)(d);if(!e)return!1;let{canClientNavigate:t}=e;return t},u=e=>{let{children:t,canClientNavigate:a}=e;return(0,r.jsx)(d.Provider,{value:{canClientNavigate:a},children:t})}},39956:function(e,t,a){"use strict";a.d(t,{G:function(){return s}});var r=a(7616),i=a(72538);let s=()=>{let e=(0,r.Dv)(i.tL),t=(0,r.Dv)(i.xk);return"anchored"===e||t}},72856:function(e,t,a){"use strict";a.d(t,{Y:function(){return i}});var r=a(52983);let i=()=>{let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>{var e,t;return null!==(e=(t=window).matchMedia)&&void 0!==e&&!!e.call(t,"(pointer: coarse)").matches||"ontouchstart"in window||navigator.maxTouchPoints>0},a=window.matchMedia("(pointer: coarse)"),r=()=>t(e());return t(e()),a.addEventListener("change",r),()=>{a.removeEventListener("change",r)}},[]),e}},21098:function(e,t,a){"use strict";a.d(t,{c:function(){return r}});let r=(0,a(57291).j)("flex h-10 items-center gap-1 rounded-lg text-sm font-medium text-surface-foreground-0 hover:bg-surface-2 sm:h-8",{variants:{anchored:{true:"w-full sm:w-8 xl:w-full",false:"w-full justify-center sm:w-8"}}})},20409:function(e,t,a){"use strict";a.d(t,{V:function(){return r}});let r=(0,a(57291).cx)("overflow-y-auto scrollbar-thin transition-all duration-150 ease-in-out scroll-smooth [scrollbar-gutter:stable] scrollbar-track-transparent scrollbar-thumb-transparent hover:scrollbar-thumb-[#9CA3AF] hover:scrollbar-track-[#F3F4F6] dark:scrollbar-thumb-transparent dark:scrollbar-track-transparent dark:hover:scrollbar-thumb-[#666] dark:hover:scrollbar-track-[#1e1e1e]")},57003:function(e,t,a){"use strict";a.d(t,{y:function(){return N}});var r=a(97458),i=a(15465),s=a(59445),n=a(29456),o=a(57291),l=a(7616),c=a(52983),d=a(54606),h=a(87420),u=a(770),m=a(41853),p=a(9249),f=a(78836),x=a(40197),v=a(23113),g=a(72538);let j=()=>{let e=(0,l.b9)(g.tQ),{domain:t}=(0,h.Vx)(),a=(0,v.a)("smMax"),i=(0,l.Dv)(g.tL),s=(0,l.Dv)(g.xk),n=(0,l.Dv)(g.jL),o=(0,l.b9)(g.km);return(0,r.jsxs)("div",{className:(0,x.m6)("flex items-center gap-2","floating"===i&&"sm:visible","anchored"===i&&"visible xl:invisible"),onTouchStart:()=>{o(!0)},children:[(0,r.jsxs)("button",{className:"flex items-center rounded-lg p-[9px] text-surface-foreground-1 hover:bg-surface-2 sm:hidden",onClick:()=>{if(a){e({mode:i,openInMobile:!s,openInDesktop:n});return}e("anchored"===i?{mode:"floating",openInDesktop:!1,openInMobile:!1}:{mode:"anchored",openInDesktop:!1,openInMobile:!1})},children:[(0,r.jsx)(u.J,{className:"size-[14px]",as:f.Z}),(0,r.jsx)(p.T,{children:"Close menu"})]}),(0,r.jsx)(m.T,{href:t,mode:"default"})]})};var w=a(85805),b=a(33673);let k={location:"header_menu",action:"prices"},N=e=>{var t;let[a]=(0,i.n)(k),h=(0,s.HI)(),u=null==h?void 0:null===(t=h.profile)||void 0===t?void 0:t.isEnterprise,m=(0,n.H)();(0,c.useEffect)(()=>{a()},[a]);let p=(0,l.Dv)(d.k),f=(0,l.Dv)(g.tL);return(0,r.jsxs)("div",{className:(0,o.cx)("sticky top-0 z-[1] grid w-full grid-cols-2 grid-rows-[4rem] items-center justify-between bg-surface-0 px-4 pb-5 lg:flex lg:h-16 lg:pb-0","anchored"===f&&"xl:justify-end"),children:[(0,r.jsx)(j,{}),e.searchBar&&(0,r.jsx)("div",{className:"col-span-full row-[2] flex w-full flex-1 items-center gap-2 lg:ml-6",children:e.searchBar}),(0,r.jsxs)("div",{className:(0,o.cx)("flex items-center gap-1 min-w-[150px] justify-end","no-data"===p.status&&"pointer-events-none invisible"),children:["withoutLinks"!==e.variant&&!u&&m&&(0,r.jsx)(w.U,{}),(0,r.jsx)(b.Y,{alternates:e.alternates})]})]})}},98245:function(e,t,a){"use strict";a.d(t,{v:function(){return d}});var r=a(87420),i=a(52983),s=a(53733);let n=Object.freeze({}),o={en:"en",ja:"ja_JP",ko:"ko_KR",pt:"pt_BR"},l=async e=>{let t=await fetch("/api/braze-translations/".concat(e));if(!t.ok)throw Error("HTTP ".concat(t.status));return t.json()},c=e=>o[e]?o[e]:e.length<=2?"".concat(e,"_").concat(e.toUpperCase()):e.replace("-","_"),d=()=>{let{locale:e}=(0,r.Vx)(),t=c(e),[a,o]=(0,i.useState)(null),[d,h]=(0,i.useState)(!1),{isInitialized:u}=(0,s._)();return(0,i.useEffect)(()=>{let e=!0;return(async()=>{try{if(!u)return;let a=await l(t);if(!e)return;o(a),h(!0)}catch(t){if(!e)return;o(n),h(!0)}})(),()=>{e=!1}},[u,t]),{translations:null!=a?a:n,ready:d}}},53733:function(e,t,a){"use strict";a.d(t,{_:function(){return s}});var r=a(52983),i=a(94493);let s=()=>{let e=(0,r.useContext)(i.U);if(void 0===e)throw Error("useBraze must be used within a BrazeProvider");return e}},87199:function(e,t,a){"use strict";a.d(t,{f:function(){return s}});var r=a(45451),i=a(52983);let s=()=>(0,i.useCallback)((e,t,a)=>{(0,r.sendGTMEvent)({event:"ga4event",event_name:a,location:e,link_text:t,style:"custom"})},[])},29456:function(e,t,a){"use strict";a.d(t,{H:function(){return o}});var r=a(2606),i=a(91394),s=a(8147),n=a(59243);let o=()=>{let e=(0,s.H)(),t=(0,n.L)(),a=(0,i.d)();return!!(0,r.A)()&&(!a||!t||!!e)}},84427:function(e,t,a){"use strict";a.d(t,{I:function(){return r}});let r=(e,t,a)=>{let r=new URL(e,"http://dummy");if(t&&Object.entries(t).forEach(e=>{let[t,a]=e;null!=a&&r.searchParams.set(t,String(a))}),a){let e=new URLSearchParams(r.hash.replace("#",""));Object.entries(a).forEach(t=>{let[a,r]=t;null!=r&&e.set(a,String(r))}),r.hash=e.toString()}let i=r.pathname.replace(/\/$/,"");return(r.protocol+"//"+r.hostname+i+r.search+r.hash).replace("http://dummy","")}},8807:function(e){e.exports={animateSlideLeft:"styles_animateSlideLeft__MHV7g",slideLeft:"styles_slideLeft__b7jWi",animateSlideRight:"styles_animateSlideRight___MzBh",slideRight:"styles_slideRight__AX_Jj"}},49959:function(e){e.exports={fadeIn:"styles_fadeIn__vvwYd",fadeOut:"styles_fadeOut__wo_NV"}}}]);